diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 18:04:54 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:14 -0500 |
commit | 6d2cea4fcaff539f803b06d5c3146966f78d47c4 (patch) | |
tree | 7c429c084678e34ef6d71cc68a8432ad7198adcf /drivers/power/reset | |
parent | 47b1ea75fe072432f5b93ced21c019ed2b930c98 (diff) |
Drivers: power: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
markings need to be removed.
This change removes the use of __devinit, __devexit_p, __devinitconst,
and __devexit from these drivers.
Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.
Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Anton Vorontsov <cbou@mail.ru>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Jamie Lentin <jm@lentin.co.uk>
Cc: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/power/reset')
-rw-r--r-- | drivers/power/reset/gpio-poweroff.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/power/reset/gpio-poweroff.c b/drivers/power/reset/gpio-poweroff.c index 0491e5335d02..06074248ba7a 100644 --- a/drivers/power/reset/gpio-poweroff.c +++ b/drivers/power/reset/gpio-poweroff.c | |||
@@ -46,7 +46,7 @@ static void gpio_poweroff_do_poweroff(void) | |||
46 | WARN_ON(1); | 46 | WARN_ON(1); |
47 | } | 47 | } |
48 | 48 | ||
49 | static int __devinit gpio_poweroff_probe(struct platform_device *pdev) | 49 | static int gpio_poweroff_probe(struct platform_device *pdev) |
50 | { | 50 | { |
51 | enum of_gpio_flags flags; | 51 | enum of_gpio_flags flags; |
52 | bool input = false; | 52 | bool input = false; |
@@ -96,7 +96,7 @@ err: | |||
96 | return -ENODEV; | 96 | return -ENODEV; |
97 | } | 97 | } |
98 | 98 | ||
99 | static int __devexit gpio_poweroff_remove(struct platform_device *pdev) | 99 | static int gpio_poweroff_remove(struct platform_device *pdev) |
100 | { | 100 | { |
101 | if (gpio_num != -1) | 101 | if (gpio_num != -1) |
102 | gpio_free(gpio_num); | 102 | gpio_free(gpio_num); |
@@ -113,7 +113,7 @@ static const struct of_device_id of_gpio_poweroff_match[] = { | |||
113 | 113 | ||
114 | static struct platform_driver gpio_poweroff_driver = { | 114 | static struct platform_driver gpio_poweroff_driver = { |
115 | .probe = gpio_poweroff_probe, | 115 | .probe = gpio_poweroff_probe, |
116 | .remove = __devexit_p(gpio_poweroff_remove), | 116 | .remove = gpio_poweroff_remove, |
117 | .driver = { | 117 | .driver = { |
118 | .name = "poweroff-gpio", | 118 | .name = "poweroff-gpio", |
119 | .owner = THIS_MODULE, | 119 | .owner = THIS_MODULE, |