aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/power/ab8500_bmdata.c6
-rw-r--r--drivers/power/olpc_battery.c2
-rw-r--r--drivers/power/reset/gpio-poweroff.c6
-rw-r--r--drivers/power/rx51_battery.c6
4 files changed, 9 insertions, 11 deletions
diff --git a/drivers/power/ab8500_bmdata.c b/drivers/power/ab8500_bmdata.c
index 03cc528425cb..f034ae43e045 100644
--- a/drivers/power/ab8500_bmdata.c
+++ b/drivers/power/ab8500_bmdata.c
@@ -452,10 +452,8 @@ struct abx500_bm_data ab8500_bm_data = {
452 .fg_params = &fg, 452 .fg_params = &fg,
453}; 453};
454 454
455int __devinit 455int bmdevs_of_probe(struct device *dev, struct device_node *np,
456bmdevs_of_probe(struct device *dev, 456 struct abx500_bm_data **battery)
457 struct device_node *np,
458 struct abx500_bm_data **battery)
459{ 457{
460 struct abx500_battery_type *btype; 458 struct abx500_battery_type *btype;
461 struct device_node *np_bat_supply; 459 struct device_node *np_bat_supply;
diff --git a/drivers/power/olpc_battery.c b/drivers/power/olpc_battery.c
index 298c47d111b4..1ec810ada5ed 100644
--- a/drivers/power/olpc_battery.c
+++ b/drivers/power/olpc_battery.c
@@ -668,7 +668,7 @@ static int olpc_battery_remove(struct platform_device *pdev)
668 return 0; 668 return 0;
669} 669}
670 670
671static const struct of_device_id olpc_battery_ids[] __devinitconst = { 671static const struct of_device_id olpc_battery_ids[] = {
672 { .compatible = "olpc,xo1-battery" }, 672 { .compatible = "olpc,xo1-battery" },
673 {} 673 {}
674}; 674};
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
49static int __devinit gpio_poweroff_probe(struct platform_device *pdev) 49static 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
99static int __devexit gpio_poweroff_remove(struct platform_device *pdev) 99static 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
114static struct platform_driver gpio_poweroff_driver = { 114static 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,
diff --git a/drivers/power/rx51_battery.c b/drivers/power/rx51_battery.c
index ca49d6c0ee9d..8208888b844e 100644
--- a/drivers/power/rx51_battery.c
+++ b/drivers/power/rx51_battery.c
@@ -197,7 +197,7 @@ static enum power_supply_property rx51_battery_props[] = {
197 POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN, 197 POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN,
198}; 198};
199 199
200static int __devinit rx51_battery_probe(struct platform_device *pdev) 200static int rx51_battery_probe(struct platform_device *pdev)
201{ 201{
202 struct rx51_device_info *di; 202 struct rx51_device_info *di;
203 int ret; 203 int ret;
@@ -224,7 +224,7 @@ static int __devinit rx51_battery_probe(struct platform_device *pdev)
224 return 0; 224 return 0;
225} 225}
226 226
227static int __devexit rx51_battery_remove(struct platform_device *pdev) 227static int rx51_battery_remove(struct platform_device *pdev)
228{ 228{
229 struct rx51_device_info *di = platform_get_drvdata(pdev); 229 struct rx51_device_info *di = platform_get_drvdata(pdev);
230 230
@@ -237,7 +237,7 @@ static int __devexit rx51_battery_remove(struct platform_device *pdev)
237 237
238static struct platform_driver rx51_battery_driver = { 238static struct platform_driver rx51_battery_driver = {
239 .probe = rx51_battery_probe, 239 .probe = rx51_battery_probe,
240 .remove = __devexit_p(rx51_battery_remove), 240 .remove = rx51_battery_remove,
241 .driver = { 241 .driver = {
242 .name = "rx51-battery", 242 .name = "rx51-battery",
243 .owner = THIS_MODULE, 243 .owner = THIS_MODULE,