diff options
author | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-12-12 01:15:57 -0500 |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-12-12 01:15:57 -0500 |
commit | 76d8a23b127020472207b281427d3e9f4f1227e4 (patch) | |
tree | e14d7063d96d850fb259115d6fb08cbeb98ccf88 /drivers/power | |
parent | eba3b670a9166a91be5a11fe33290dca6b9457a2 (diff) | |
parent | 1ebaf4f4e6912199f8a4e30ba3ab55da2b71bcdf (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux
The merge is merely to fix conflicts before sending a pull request.
Conflicts:
drivers/power/ab8500_btemp.c
drivers/power/ab8500_charger.c
drivers/power/ab8500_fg.c
drivers/power/abx500_chargalg.c
drivers/power/max8925_power.c
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'drivers/power')
37 files changed, 109 insertions, 109 deletions
diff --git a/drivers/power/88pm860x_battery.c b/drivers/power/88pm860x_battery.c index beed5ecf75e1..8bc80b05c63c 100644 --- a/drivers/power/88pm860x_battery.c +++ b/drivers/power/88pm860x_battery.c | |||
@@ -901,7 +901,7 @@ static enum power_supply_property pm860x_batt_props[] = { | |||
901 | POWER_SUPPLY_PROP_TEMP, | 901 | POWER_SUPPLY_PROP_TEMP, |
902 | }; | 902 | }; |
903 | 903 | ||
904 | static __devinit int pm860x_battery_probe(struct platform_device *pdev) | 904 | static int pm860x_battery_probe(struct platform_device *pdev) |
905 | { | 905 | { |
906 | struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); | 906 | struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); |
907 | struct pm860x_battery_info *info; | 907 | struct pm860x_battery_info *info; |
@@ -989,7 +989,7 @@ out: | |||
989 | return ret; | 989 | return ret; |
990 | } | 990 | } |
991 | 991 | ||
992 | static int __devexit pm860x_battery_remove(struct platform_device *pdev) | 992 | static int pm860x_battery_remove(struct platform_device *pdev) |
993 | { | 993 | { |
994 | struct pm860x_battery_info *info = platform_get_drvdata(pdev); | 994 | struct pm860x_battery_info *info = platform_get_drvdata(pdev); |
995 | 995 | ||
@@ -1033,7 +1033,7 @@ static struct platform_driver pm860x_battery_driver = { | |||
1033 | .pm = &pm860x_battery_pm_ops, | 1033 | .pm = &pm860x_battery_pm_ops, |
1034 | }, | 1034 | }, |
1035 | .probe = pm860x_battery_probe, | 1035 | .probe = pm860x_battery_probe, |
1036 | .remove = __devexit_p(pm860x_battery_remove), | 1036 | .remove = pm860x_battery_remove, |
1037 | }; | 1037 | }; |
1038 | module_platform_driver(pm860x_battery_driver); | 1038 | module_platform_driver(pm860x_battery_driver); |
1039 | 1039 | ||
diff --git a/drivers/power/88pm860x_charger.c b/drivers/power/88pm860x_charger.c index 2dbeb1460901..4b37a5af8deb 100644 --- a/drivers/power/88pm860x_charger.c +++ b/drivers/power/88pm860x_charger.c | |||
@@ -645,7 +645,7 @@ static struct pm860x_irq_desc { | |||
645 | { "vchg", pm860x_vchg_handler }, | 645 | { "vchg", pm860x_vchg_handler }, |
646 | }; | 646 | }; |
647 | 647 | ||
648 | static __devinit int pm860x_charger_probe(struct platform_device *pdev) | 648 | static int pm860x_charger_probe(struct platform_device *pdev) |
649 | { | 649 | { |
650 | struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); | 650 | struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); |
651 | struct pm860x_charger_info *info; | 651 | struct pm860x_charger_info *info; |
@@ -718,7 +718,7 @@ out: | |||
718 | return ret; | 718 | return ret; |
719 | } | 719 | } |
720 | 720 | ||
721 | static int __devexit pm860x_charger_remove(struct platform_device *pdev) | 721 | static int pm860x_charger_remove(struct platform_device *pdev) |
722 | { | 722 | { |
723 | struct pm860x_charger_info *info = platform_get_drvdata(pdev); | 723 | struct pm860x_charger_info *info = platform_get_drvdata(pdev); |
724 | int i; | 724 | int i; |
@@ -738,7 +738,7 @@ static struct platform_driver pm860x_charger_driver = { | |||
738 | .owner = THIS_MODULE, | 738 | .owner = THIS_MODULE, |
739 | }, | 739 | }, |
740 | .probe = pm860x_charger_probe, | 740 | .probe = pm860x_charger_probe, |
741 | .remove = __devexit_p(pm860x_charger_remove), | 741 | .remove = pm860x_charger_remove, |
742 | }; | 742 | }; |
743 | module_platform_driver(pm860x_charger_driver); | 743 | module_platform_driver(pm860x_charger_driver); |
744 | 744 | ||
diff --git a/drivers/power/ab8500_btemp.c b/drivers/power/ab8500_btemp.c index 8135542ee746..20e2a7d3ef43 100644 --- a/drivers/power/ab8500_btemp.c +++ b/drivers/power/ab8500_btemp.c | |||
@@ -938,7 +938,7 @@ static int ab8500_btemp_suspend(struct platform_device *pdev, | |||
938 | #define ab8500_btemp_resume NULL | 938 | #define ab8500_btemp_resume NULL |
939 | #endif | 939 | #endif |
940 | 940 | ||
941 | static int __devexit ab8500_btemp_remove(struct platform_device *pdev) | 941 | static int ab8500_btemp_remove(struct platform_device *pdev) |
942 | { | 942 | { |
943 | struct ab8500_btemp *di = platform_get_drvdata(pdev); | 943 | struct ab8500_btemp *di = platform_get_drvdata(pdev); |
944 | int i, irq; | 944 | int i, irq; |
@@ -964,7 +964,7 @@ static char *supply_interface[] = { | |||
964 | "ab8500_fg", | 964 | "ab8500_fg", |
965 | }; | 965 | }; |
966 | 966 | ||
967 | static int __devinit ab8500_btemp_probe(struct platform_device *pdev) | 967 | static int ab8500_btemp_probe(struct platform_device *pdev) |
968 | { | 968 | { |
969 | struct device_node *np = pdev->dev.of_node; | 969 | struct device_node *np = pdev->dev.of_node; |
970 | struct ab8500_btemp *di; | 970 | struct ab8500_btemp *di; |
@@ -1103,7 +1103,7 @@ static const struct of_device_id ab8500_btemp_match[] = { | |||
1103 | 1103 | ||
1104 | static struct platform_driver ab8500_btemp_driver = { | 1104 | static struct platform_driver ab8500_btemp_driver = { |
1105 | .probe = ab8500_btemp_probe, | 1105 | .probe = ab8500_btemp_probe, |
1106 | .remove = __devexit_p(ab8500_btemp_remove), | 1106 | .remove = ab8500_btemp_remove, |
1107 | .suspend = ab8500_btemp_suspend, | 1107 | .suspend = ab8500_btemp_suspend, |
1108 | .resume = ab8500_btemp_resume, | 1108 | .resume = ab8500_btemp_resume, |
1109 | .driver = { | 1109 | .driver = { |
diff --git a/drivers/power/ab8500_charger.c b/drivers/power/ab8500_charger.c index dddc9473f72a..3be9c0ee3fc5 100644 --- a/drivers/power/ab8500_charger.c +++ b/drivers/power/ab8500_charger.c | |||
@@ -2492,7 +2492,7 @@ static int ab8500_charger_suspend(struct platform_device *pdev, | |||
2492 | #define ab8500_charger_resume NULL | 2492 | #define ab8500_charger_resume NULL |
2493 | #endif | 2493 | #endif |
2494 | 2494 | ||
2495 | static int __devexit ab8500_charger_remove(struct platform_device *pdev) | 2495 | static int ab8500_charger_remove(struct platform_device *pdev) |
2496 | { | 2496 | { |
2497 | struct ab8500_charger *di = platform_get_drvdata(pdev); | 2497 | struct ab8500_charger *di = platform_get_drvdata(pdev); |
2498 | int i, irq, ret; | 2498 | int i, irq, ret; |
@@ -2538,7 +2538,7 @@ static char *supply_interface[] = { | |||
2538 | "ab8500_btemp", | 2538 | "ab8500_btemp", |
2539 | }; | 2539 | }; |
2540 | 2540 | ||
2541 | static int __devinit ab8500_charger_probe(struct platform_device *pdev) | 2541 | static int ab8500_charger_probe(struct platform_device *pdev) |
2542 | { | 2542 | { |
2543 | struct device_node *np = pdev->dev.of_node; | 2543 | struct device_node *np = pdev->dev.of_node; |
2544 | struct ab8500_charger *di; | 2544 | struct ab8500_charger *di; |
@@ -2772,7 +2772,7 @@ static const struct of_device_id ab8500_charger_match[] = { | |||
2772 | 2772 | ||
2773 | static struct platform_driver ab8500_charger_driver = { | 2773 | static struct platform_driver ab8500_charger_driver = { |
2774 | .probe = ab8500_charger_probe, | 2774 | .probe = ab8500_charger_probe, |
2775 | .remove = __devexit_p(ab8500_charger_remove), | 2775 | .remove = ab8500_charger_remove, |
2776 | .suspend = ab8500_charger_suspend, | 2776 | .suspend = ab8500_charger_suspend, |
2777 | .resume = ab8500_charger_resume, | 2777 | .resume = ab8500_charger_resume, |
2778 | .driver = { | 2778 | .driver = { |
diff --git a/drivers/power/ab8500_fg.c b/drivers/power/ab8500_fg.c index ed62ef788eb5..b3bf178c3462 100644 --- a/drivers/power/ab8500_fg.c +++ b/drivers/power/ab8500_fg.c | |||
@@ -2410,7 +2410,7 @@ static int ab8500_fg_suspend(struct platform_device *pdev, | |||
2410 | #define ab8500_fg_resume NULL | 2410 | #define ab8500_fg_resume NULL |
2411 | #endif | 2411 | #endif |
2412 | 2412 | ||
2413 | static int __devexit ab8500_fg_remove(struct platform_device *pdev) | 2413 | static int ab8500_fg_remove(struct platform_device *pdev) |
2414 | { | 2414 | { |
2415 | int ret = 0; | 2415 | int ret = 0; |
2416 | struct ab8500_fg *di = platform_get_drvdata(pdev); | 2416 | struct ab8500_fg *di = platform_get_drvdata(pdev); |
@@ -2445,7 +2445,7 @@ static char *supply_interface[] = { | |||
2445 | "ab8500_usb", | 2445 | "ab8500_usb", |
2446 | }; | 2446 | }; |
2447 | 2447 | ||
2448 | static int __devinit ab8500_fg_probe(struct platform_device *pdev) | 2448 | static int ab8500_fg_probe(struct platform_device *pdev) |
2449 | { | 2449 | { |
2450 | struct device_node *np = pdev->dev.of_node; | 2450 | struct device_node *np = pdev->dev.of_node; |
2451 | struct ab8500_fg *di; | 2451 | struct ab8500_fg *di; |
@@ -2615,7 +2615,7 @@ static const struct of_device_id ab8500_fg_match[] = { | |||
2615 | 2615 | ||
2616 | static struct platform_driver ab8500_fg_driver = { | 2616 | static struct platform_driver ab8500_fg_driver = { |
2617 | .probe = ab8500_fg_probe, | 2617 | .probe = ab8500_fg_probe, |
2618 | .remove = __devexit_p(ab8500_fg_remove), | 2618 | .remove = ab8500_fg_remove, |
2619 | .suspend = ab8500_fg_suspend, | 2619 | .suspend = ab8500_fg_suspend, |
2620 | .resume = ab8500_fg_resume, | 2620 | .resume = ab8500_fg_resume, |
2621 | .driver = { | 2621 | .driver = { |
diff --git a/drivers/power/abx500_chargalg.c b/drivers/power/abx500_chargalg.c index dcdc4393b9e7..297089146064 100644 --- a/drivers/power/abx500_chargalg.c +++ b/drivers/power/abx500_chargalg.c | |||
@@ -1782,7 +1782,7 @@ static int abx500_chargalg_suspend(struct platform_device *pdev, | |||
1782 | #define abx500_chargalg_resume NULL | 1782 | #define abx500_chargalg_resume NULL |
1783 | #endif | 1783 | #endif |
1784 | 1784 | ||
1785 | static int __devexit abx500_chargalg_remove(struct platform_device *pdev) | 1785 | static int abx500_chargalg_remove(struct platform_device *pdev) |
1786 | { | 1786 | { |
1787 | struct abx500_chargalg *di = platform_get_drvdata(pdev); | 1787 | struct abx500_chargalg *di = platform_get_drvdata(pdev); |
1788 | 1788 | ||
@@ -1803,7 +1803,7 @@ static char *supply_interface[] = { | |||
1803 | "ab8500_fg", | 1803 | "ab8500_fg", |
1804 | }; | 1804 | }; |
1805 | 1805 | ||
1806 | static int __devinit abx500_chargalg_probe(struct platform_device *pdev) | 1806 | static int abx500_chargalg_probe(struct platform_device *pdev) |
1807 | { | 1807 | { |
1808 | struct device_node *np = pdev->dev.of_node; | 1808 | struct device_node *np = pdev->dev.of_node; |
1809 | struct abx500_chargalg *di; | 1809 | struct abx500_chargalg *di; |
@@ -1912,7 +1912,7 @@ static const struct of_device_id ab8500_chargalg_match[] = { | |||
1912 | 1912 | ||
1913 | static struct platform_driver abx500_chargalg_driver = { | 1913 | static struct platform_driver abx500_chargalg_driver = { |
1914 | .probe = abx500_chargalg_probe, | 1914 | .probe = abx500_chargalg_probe, |
1915 | .remove = __devexit_p(abx500_chargalg_remove), | 1915 | .remove = abx500_chargalg_remove, |
1916 | .suspend = abx500_chargalg_suspend, | 1916 | .suspend = abx500_chargalg_suspend, |
1917 | .resume = abx500_chargalg_resume, | 1917 | .resume = abx500_chargalg_resume, |
1918 | .driver = { | 1918 | .driver = { |
diff --git a/drivers/power/avs/smartreflex.c b/drivers/power/avs/smartreflex.c index 24768a27e1d8..d0fed2c5cf2c 100644 --- a/drivers/power/avs/smartreflex.c +++ b/drivers/power/avs/smartreflex.c | |||
@@ -1026,7 +1026,7 @@ err_free_devinfo: | |||
1026 | return ret; | 1026 | return ret; |
1027 | } | 1027 | } |
1028 | 1028 | ||
1029 | static int __devexit omap_sr_remove(struct platform_device *pdev) | 1029 | static int omap_sr_remove(struct platform_device *pdev) |
1030 | { | 1030 | { |
1031 | struct omap_sr_data *pdata = pdev->dev.platform_data; | 1031 | struct omap_sr_data *pdata = pdev->dev.platform_data; |
1032 | struct omap_sr *sr_info; | 1032 | struct omap_sr *sr_info; |
@@ -1059,7 +1059,7 @@ static int __devexit omap_sr_remove(struct platform_device *pdev) | |||
1059 | return 0; | 1059 | return 0; |
1060 | } | 1060 | } |
1061 | 1061 | ||
1062 | static void __devexit omap_sr_shutdown(struct platform_device *pdev) | 1062 | static void omap_sr_shutdown(struct platform_device *pdev) |
1063 | { | 1063 | { |
1064 | struct omap_sr_data *pdata = pdev->dev.platform_data; | 1064 | struct omap_sr_data *pdata = pdev->dev.platform_data; |
1065 | struct omap_sr *sr_info; | 1065 | struct omap_sr *sr_info; |
@@ -1083,8 +1083,8 @@ static void __devexit omap_sr_shutdown(struct platform_device *pdev) | |||
1083 | } | 1083 | } |
1084 | 1084 | ||
1085 | static struct platform_driver smartreflex_driver = { | 1085 | static struct platform_driver smartreflex_driver = { |
1086 | .remove = __devexit_p(omap_sr_remove), | 1086 | .remove = omap_sr_remove, |
1087 | .shutdown = __devexit_p(omap_sr_shutdown), | 1087 | .shutdown = omap_sr_shutdown, |
1088 | .driver = { | 1088 | .driver = { |
1089 | .name = "smartreflex", | 1089 | .name = "smartreflex", |
1090 | }, | 1090 | }, |
diff --git a/drivers/power/bq27x00_battery.c b/drivers/power/bq27x00_battery.c index 41b3328ecfc5..36b34efdafc9 100644 --- a/drivers/power/bq27x00_battery.c +++ b/drivers/power/bq27x00_battery.c | |||
@@ -934,7 +934,7 @@ static int bq27000_read_platform(struct bq27x00_device_info *di, u8 reg, | |||
934 | return pdata->read(dev, reg); | 934 | return pdata->read(dev, reg); |
935 | } | 935 | } |
936 | 936 | ||
937 | static int __devinit bq27000_battery_probe(struct platform_device *pdev) | 937 | static int bq27000_battery_probe(struct platform_device *pdev) |
938 | { | 938 | { |
939 | struct bq27x00_device_info *di; | 939 | struct bq27x00_device_info *di; |
940 | struct bq27000_platform_data *pdata = pdev->dev.platform_data; | 940 | struct bq27000_platform_data *pdata = pdev->dev.platform_data; |
@@ -977,7 +977,7 @@ err_free: | |||
977 | return ret; | 977 | return ret; |
978 | } | 978 | } |
979 | 979 | ||
980 | static int __devexit bq27000_battery_remove(struct platform_device *pdev) | 980 | static int bq27000_battery_remove(struct platform_device *pdev) |
981 | { | 981 | { |
982 | struct bq27x00_device_info *di = platform_get_drvdata(pdev); | 982 | struct bq27x00_device_info *di = platform_get_drvdata(pdev); |
983 | 983 | ||
@@ -991,7 +991,7 @@ static int __devexit bq27000_battery_remove(struct platform_device *pdev) | |||
991 | 991 | ||
992 | static struct platform_driver bq27000_battery_driver = { | 992 | static struct platform_driver bq27000_battery_driver = { |
993 | .probe = bq27000_battery_probe, | 993 | .probe = bq27000_battery_probe, |
994 | .remove = __devexit_p(bq27000_battery_remove), | 994 | .remove = bq27000_battery_remove, |
995 | .driver = { | 995 | .driver = { |
996 | .name = "bq27000-battery", | 996 | .name = "bq27000-battery", |
997 | .owner = THIS_MODULE, | 997 | .owner = THIS_MODULE, |
diff --git a/drivers/power/charger-manager.c b/drivers/power/charger-manager.c index 8a0aca6364c7..adb3a4b59cb3 100644 --- a/drivers/power/charger-manager.c +++ b/drivers/power/charger-manager.c | |||
@@ -1655,7 +1655,7 @@ err_alloc: | |||
1655 | return ret; | 1655 | return ret; |
1656 | } | 1656 | } |
1657 | 1657 | ||
1658 | static int __devexit charger_manager_remove(struct platform_device *pdev) | 1658 | static int charger_manager_remove(struct platform_device *pdev) |
1659 | { | 1659 | { |
1660 | struct charger_manager *cm = platform_get_drvdata(pdev); | 1660 | struct charger_manager *cm = platform_get_drvdata(pdev); |
1661 | struct charger_desc *desc = cm->desc; | 1661 | struct charger_desc *desc = cm->desc; |
@@ -1812,7 +1812,7 @@ static struct platform_driver charger_manager_driver = { | |||
1812 | .pm = &charger_manager_pm, | 1812 | .pm = &charger_manager_pm, |
1813 | }, | 1813 | }, |
1814 | .probe = charger_manager_probe, | 1814 | .probe = charger_manager_probe, |
1815 | .remove = __devexit_p(charger_manager_remove), | 1815 | .remove = charger_manager_remove, |
1816 | .id_table = charger_manager_id, | 1816 | .id_table = charger_manager_id, |
1817 | }; | 1817 | }; |
1818 | 1818 | ||
diff --git a/drivers/power/collie_battery.c b/drivers/power/collie_battery.c index b19bfe400f8c..c58d0e31bdef 100644 --- a/drivers/power/collie_battery.c +++ b/drivers/power/collie_battery.c | |||
@@ -305,7 +305,7 @@ static int collie_bat_resume(struct ucb1x00_dev *dev) | |||
305 | #define collie_bat_resume NULL | 305 | #define collie_bat_resume NULL |
306 | #endif | 306 | #endif |
307 | 307 | ||
308 | static int __devinit collie_bat_probe(struct ucb1x00_dev *dev) | 308 | static int collie_bat_probe(struct ucb1x00_dev *dev) |
309 | { | 309 | { |
310 | int ret; | 310 | int ret; |
311 | 311 | ||
@@ -349,7 +349,7 @@ err_psy_reg_main: | |||
349 | return ret; | 349 | return ret; |
350 | } | 350 | } |
351 | 351 | ||
352 | static void __devexit collie_bat_remove(struct ucb1x00_dev *dev) | 352 | static void collie_bat_remove(struct ucb1x00_dev *dev) |
353 | { | 353 | { |
354 | free_irq(gpio_to_irq(COLLIE_GPIO_CO), &collie_bat_main); | 354 | free_irq(gpio_to_irq(COLLIE_GPIO_CO), &collie_bat_main); |
355 | 355 | ||
@@ -367,7 +367,7 @@ static void __devexit collie_bat_remove(struct ucb1x00_dev *dev) | |||
367 | 367 | ||
368 | static struct ucb1x00_driver collie_bat_driver = { | 368 | static struct ucb1x00_driver collie_bat_driver = { |
369 | .add = collie_bat_probe, | 369 | .add = collie_bat_probe, |
370 | .remove = __devexit_p(collie_bat_remove), | 370 | .remove = collie_bat_remove, |
371 | .suspend = collie_bat_suspend, | 371 | .suspend = collie_bat_suspend, |
372 | .resume = collie_bat_resume, | 372 | .resume = collie_bat_resume, |
373 | }; | 373 | }; |
diff --git a/drivers/power/da9052-battery.c b/drivers/power/da9052-battery.c index d9d034d7496f..bb0df8917adc 100644 --- a/drivers/power/da9052-battery.c +++ b/drivers/power/da9052-battery.c | |||
@@ -576,7 +576,7 @@ static const char *const da9052_bat_irqs[] = { | |||
576 | "CHG END", | 576 | "CHG END", |
577 | }; | 577 | }; |
578 | 578 | ||
579 | static s32 __devinit da9052_bat_probe(struct platform_device *pdev) | 579 | static s32 da9052_bat_probe(struct platform_device *pdev) |
580 | { | 580 | { |
581 | struct da9052_pdata *pdata; | 581 | struct da9052_pdata *pdata; |
582 | struct da9052_battery *bat; | 582 | struct da9052_battery *bat; |
@@ -630,7 +630,7 @@ err: | |||
630 | kfree(bat); | 630 | kfree(bat); |
631 | return ret; | 631 | return ret; |
632 | } | 632 | } |
633 | static int __devexit da9052_bat_remove(struct platform_device *pdev) | 633 | static int da9052_bat_remove(struct platform_device *pdev) |
634 | { | 634 | { |
635 | int i; | 635 | int i; |
636 | int irq; | 636 | int irq; |
@@ -648,7 +648,7 @@ static int __devexit da9052_bat_remove(struct platform_device *pdev) | |||
648 | 648 | ||
649 | static struct platform_driver da9052_bat_driver = { | 649 | static struct platform_driver da9052_bat_driver = { |
650 | .probe = da9052_bat_probe, | 650 | .probe = da9052_bat_probe, |
651 | .remove = __devexit_p(da9052_bat_remove), | 651 | .remove = da9052_bat_remove, |
652 | .driver = { | 652 | .driver = { |
653 | .name = "da9052-bat", | 653 | .name = "da9052-bat", |
654 | .owner = THIS_MODULE, | 654 | .owner = THIS_MODULE, |
diff --git a/drivers/power/ds2780_battery.c b/drivers/power/ds2780_battery.c index 74fad941c56c..8b6c4539e7f4 100644 --- a/drivers/power/ds2780_battery.c +++ b/drivers/power/ds2780_battery.c | |||
@@ -755,7 +755,7 @@ static const struct attribute_group ds2780_attr_group = { | |||
755 | .attrs = ds2780_attributes, | 755 | .attrs = ds2780_attributes, |
756 | }; | 756 | }; |
757 | 757 | ||
758 | static int __devinit ds2780_battery_probe(struct platform_device *pdev) | 758 | static int ds2780_battery_probe(struct platform_device *pdev) |
759 | { | 759 | { |
760 | int ret = 0; | 760 | int ret = 0; |
761 | struct ds2780_device_info *dev_info; | 761 | struct ds2780_device_info *dev_info; |
@@ -819,7 +819,7 @@ fail: | |||
819 | return ret; | 819 | return ret; |
820 | } | 820 | } |
821 | 821 | ||
822 | static int __devexit ds2780_battery_remove(struct platform_device *pdev) | 822 | static int ds2780_battery_remove(struct platform_device *pdev) |
823 | { | 823 | { |
824 | struct ds2780_device_info *dev_info = platform_get_drvdata(pdev); | 824 | struct ds2780_device_info *dev_info = platform_get_drvdata(pdev); |
825 | 825 | ||
@@ -837,7 +837,7 @@ static struct platform_driver ds2780_battery_driver = { | |||
837 | .name = "ds2780-battery", | 837 | .name = "ds2780-battery", |
838 | }, | 838 | }, |
839 | .probe = ds2780_battery_probe, | 839 | .probe = ds2780_battery_probe, |
840 | .remove = __devexit_p(ds2780_battery_remove), | 840 | .remove = ds2780_battery_remove, |
841 | }; | 841 | }; |
842 | 842 | ||
843 | module_platform_driver(ds2780_battery_driver); | 843 | module_platform_driver(ds2780_battery_driver); |
diff --git a/drivers/power/ds2781_battery.c b/drivers/power/ds2781_battery.c index 22b3c8c93552..0a5acc6fc6f0 100644 --- a/drivers/power/ds2781_battery.c +++ b/drivers/power/ds2781_battery.c | |||
@@ -750,7 +750,7 @@ static const struct attribute_group ds2781_attr_group = { | |||
750 | .attrs = ds2781_attributes, | 750 | .attrs = ds2781_attributes, |
751 | }; | 751 | }; |
752 | 752 | ||
753 | static int __devinit ds2781_battery_probe(struct platform_device *pdev) | 753 | static int ds2781_battery_probe(struct platform_device *pdev) |
754 | { | 754 | { |
755 | int ret = 0; | 755 | int ret = 0; |
756 | struct ds2781_device_info *dev_info; | 756 | struct ds2781_device_info *dev_info; |
@@ -810,7 +810,7 @@ fail: | |||
810 | return ret; | 810 | return ret; |
811 | } | 811 | } |
812 | 812 | ||
813 | static int __devexit ds2781_battery_remove(struct platform_device *pdev) | 813 | static int ds2781_battery_remove(struct platform_device *pdev) |
814 | { | 814 | { |
815 | struct ds2781_device_info *dev_info = platform_get_drvdata(pdev); | 815 | struct ds2781_device_info *dev_info = platform_get_drvdata(pdev); |
816 | 816 | ||
@@ -827,7 +827,7 @@ static struct platform_driver ds2781_battery_driver = { | |||
827 | .name = "ds2781-battery", | 827 | .name = "ds2781-battery", |
828 | }, | 828 | }, |
829 | .probe = ds2781_battery_probe, | 829 | .probe = ds2781_battery_probe, |
830 | .remove = __devexit_p(ds2781_battery_remove), | 830 | .remove = ds2781_battery_remove, |
831 | }; | 831 | }; |
832 | module_platform_driver(ds2781_battery_driver); | 832 | module_platform_driver(ds2781_battery_driver); |
833 | 833 | ||
diff --git a/drivers/power/generic-adc-battery.c b/drivers/power/generic-adc-battery.c index ecbf672a35db..32ce17e235c0 100644 --- a/drivers/power/generic-adc-battery.c +++ b/drivers/power/generic-adc-battery.c | |||
@@ -236,7 +236,7 @@ static irqreturn_t gab_charged(int irq, void *dev_id) | |||
236 | return IRQ_HANDLED; | 236 | return IRQ_HANDLED; |
237 | } | 237 | } |
238 | 238 | ||
239 | static int __devinit gab_probe(struct platform_device *pdev) | 239 | static int gab_probe(struct platform_device *pdev) |
240 | { | 240 | { |
241 | struct gab *adc_bat; | 241 | struct gab *adc_bat; |
242 | struct power_supply *psy; | 242 | struct power_supply *psy; |
@@ -352,7 +352,7 @@ first_mem_fail: | |||
352 | return ret; | 352 | return ret; |
353 | } | 353 | } |
354 | 354 | ||
355 | static int __devexit gab_remove(struct platform_device *pdev) | 355 | static int gab_remove(struct platform_device *pdev) |
356 | { | 356 | { |
357 | int chan; | 357 | int chan; |
358 | struct gab *adc_bat = platform_get_drvdata(pdev); | 358 | struct gab *adc_bat = platform_get_drvdata(pdev); |
@@ -414,7 +414,7 @@ static struct platform_driver gab_driver = { | |||
414 | .pm = GAB_PM_OPS | 414 | .pm = GAB_PM_OPS |
415 | }, | 415 | }, |
416 | .probe = gab_probe, | 416 | .probe = gab_probe, |
417 | .remove = __devexit_p(gab_remove), | 417 | .remove = gab_remove, |
418 | }; | 418 | }; |
419 | module_platform_driver(gab_driver); | 419 | module_platform_driver(gab_driver); |
420 | 420 | ||
diff --git a/drivers/power/gpio-charger.c b/drivers/power/gpio-charger.c index cb2aa3195687..e3e40a9f3af2 100644 --- a/drivers/power/gpio-charger.c +++ b/drivers/power/gpio-charger.c | |||
@@ -68,7 +68,7 @@ static enum power_supply_property gpio_charger_properties[] = { | |||
68 | POWER_SUPPLY_PROP_ONLINE, | 68 | POWER_SUPPLY_PROP_ONLINE, |
69 | }; | 69 | }; |
70 | 70 | ||
71 | static int __devinit gpio_charger_probe(struct platform_device *pdev) | 71 | static int gpio_charger_probe(struct platform_device *pdev) |
72 | { | 72 | { |
73 | const struct gpio_charger_platform_data *pdata = pdev->dev.platform_data; | 73 | const struct gpio_charger_platform_data *pdata = pdev->dev.platform_data; |
74 | struct gpio_charger *gpio_charger; | 74 | struct gpio_charger *gpio_charger; |
@@ -144,7 +144,7 @@ err_free: | |||
144 | return ret; | 144 | return ret; |
145 | } | 145 | } |
146 | 146 | ||
147 | static int __devexit gpio_charger_remove(struct platform_device *pdev) | 147 | static int gpio_charger_remove(struct platform_device *pdev) |
148 | { | 148 | { |
149 | struct gpio_charger *gpio_charger = platform_get_drvdata(pdev); | 149 | struct gpio_charger *gpio_charger = platform_get_drvdata(pdev); |
150 | 150 | ||
@@ -177,7 +177,7 @@ static SIMPLE_DEV_PM_OPS(gpio_charger_pm_ops, NULL, gpio_charger_resume); | |||
177 | 177 | ||
178 | static struct platform_driver gpio_charger_driver = { | 178 | static struct platform_driver gpio_charger_driver = { |
179 | .probe = gpio_charger_probe, | 179 | .probe = gpio_charger_probe, |
180 | .remove = __devexit_p(gpio_charger_remove), | 180 | .remove = gpio_charger_remove, |
181 | .driver = { | 181 | .driver = { |
182 | .name = "gpio-charger", | 182 | .name = "gpio-charger", |
183 | .owner = THIS_MODULE, | 183 | .owner = THIS_MODULE, |
diff --git a/drivers/power/intel_mid_battery.c b/drivers/power/intel_mid_battery.c index d09649706bd3..18d136b443ee 100644 --- a/drivers/power/intel_mid_battery.c +++ b/drivers/power/intel_mid_battery.c | |||
@@ -649,7 +649,7 @@ static void pmic_battery_handle_intrpt(struct work_struct *work) | |||
649 | * PMIC battery initializes its internal data structue and other | 649 | * PMIC battery initializes its internal data structue and other |
650 | * infrastructure components for it to work as expected. | 650 | * infrastructure components for it to work as expected. |
651 | */ | 651 | */ |
652 | static __devinit int probe(int irq, struct device *dev) | 652 | static int probe(int irq, struct device *dev) |
653 | { | 653 | { |
654 | int retval = 0; | 654 | int retval = 0; |
655 | struct pmic_power_module_info *pbi; | 655 | struct pmic_power_module_info *pbi; |
@@ -739,7 +739,7 @@ wqueue_failed: | |||
739 | return retval; | 739 | return retval; |
740 | } | 740 | } |
741 | 741 | ||
742 | static int __devinit platform_pmic_battery_probe(struct platform_device *pdev) | 742 | static int platform_pmic_battery_probe(struct platform_device *pdev) |
743 | { | 743 | { |
744 | return probe(pdev->id, &pdev->dev); | 744 | return probe(pdev->id, &pdev->dev); |
745 | } | 745 | } |
@@ -754,7 +754,7 @@ static int __devinit platform_pmic_battery_probe(struct platform_device *pdev) | |||
754 | * pmic_battery_probe. | 754 | * pmic_battery_probe. |
755 | */ | 755 | */ |
756 | 756 | ||
757 | static int __devexit platform_pmic_battery_remove(struct platform_device *pdev) | 757 | static int platform_pmic_battery_remove(struct platform_device *pdev) |
758 | { | 758 | { |
759 | struct pmic_power_module_info *pbi = dev_get_drvdata(&pdev->dev); | 759 | struct pmic_power_module_info *pbi = dev_get_drvdata(&pdev->dev); |
760 | 760 | ||
@@ -776,7 +776,7 @@ static struct platform_driver platform_pmic_battery_driver = { | |||
776 | .owner = THIS_MODULE, | 776 | .owner = THIS_MODULE, |
777 | }, | 777 | }, |
778 | .probe = platform_pmic_battery_probe, | 778 | .probe = platform_pmic_battery_probe, |
779 | .remove = __devexit_p(platform_pmic_battery_remove), | 779 | .remove = platform_pmic_battery_remove, |
780 | }; | 780 | }; |
781 | 781 | ||
782 | module_platform_driver(platform_pmic_battery_driver); | 782 | module_platform_driver(platform_pmic_battery_driver); |
diff --git a/drivers/power/isp1704_charger.c b/drivers/power/isp1704_charger.c index 122911978da2..176ad59d99f5 100644 --- a/drivers/power/isp1704_charger.c +++ b/drivers/power/isp1704_charger.c | |||
@@ -406,7 +406,7 @@ static inline int isp1704_test_ulpi(struct isp1704_charger *isp) | |||
406 | return -ENODEV; | 406 | return -ENODEV; |
407 | } | 407 | } |
408 | 408 | ||
409 | static int __devinit isp1704_charger_probe(struct platform_device *pdev) | 409 | static int isp1704_charger_probe(struct platform_device *pdev) |
410 | { | 410 | { |
411 | struct isp1704_charger *isp; | 411 | struct isp1704_charger *isp; |
412 | int ret = -ENODEV; | 412 | int ret = -ENODEV; |
@@ -484,7 +484,7 @@ fail0: | |||
484 | return ret; | 484 | return ret; |
485 | } | 485 | } |
486 | 486 | ||
487 | static int __devexit isp1704_charger_remove(struct platform_device *pdev) | 487 | static int isp1704_charger_remove(struct platform_device *pdev) |
488 | { | 488 | { |
489 | struct isp1704_charger *isp = platform_get_drvdata(pdev); | 489 | struct isp1704_charger *isp = platform_get_drvdata(pdev); |
490 | 490 | ||
@@ -502,7 +502,7 @@ static struct platform_driver isp1704_charger_driver = { | |||
502 | .name = "isp1704_charger", | 502 | .name = "isp1704_charger", |
503 | }, | 503 | }, |
504 | .probe = isp1704_charger_probe, | 504 | .probe = isp1704_charger_probe, |
505 | .remove = __devexit_p(isp1704_charger_remove), | 505 | .remove = isp1704_charger_remove, |
506 | }; | 506 | }; |
507 | 507 | ||
508 | module_platform_driver(isp1704_charger_driver); | 508 | module_platform_driver(isp1704_charger_driver); |
diff --git a/drivers/power/jz4740-battery.c b/drivers/power/jz4740-battery.c index fc7550d4d568..bf914893c6fd 100644 --- a/drivers/power/jz4740-battery.c +++ b/drivers/power/jz4740-battery.c | |||
@@ -237,7 +237,7 @@ static void jz_battery_work(struct work_struct *work) | |||
237 | schedule_delayed_work(&jz_battery->work, interval); | 237 | schedule_delayed_work(&jz_battery->work, interval); |
238 | } | 238 | } |
239 | 239 | ||
240 | static int __devinit jz_battery_probe(struct platform_device *pdev) | 240 | static int jz_battery_probe(struct platform_device *pdev) |
241 | { | 241 | { |
242 | int ret = 0; | 242 | int ret = 0; |
243 | struct jz_battery_platform_data *pdata = pdev->dev.parent->platform_data; | 243 | struct jz_battery_platform_data *pdata = pdev->dev.parent->platform_data; |
@@ -353,7 +353,7 @@ err: | |||
353 | return ret; | 353 | return ret; |
354 | } | 354 | } |
355 | 355 | ||
356 | static int __devexit jz_battery_remove(struct platform_device *pdev) | 356 | static int jz_battery_remove(struct platform_device *pdev) |
357 | { | 357 | { |
358 | struct jz_battery *jz_battery = platform_get_drvdata(pdev); | 358 | struct jz_battery *jz_battery = platform_get_drvdata(pdev); |
359 | 359 | ||
@@ -404,7 +404,7 @@ static const struct dev_pm_ops jz_battery_pm_ops = { | |||
404 | 404 | ||
405 | static struct platform_driver jz_battery_driver = { | 405 | static struct platform_driver jz_battery_driver = { |
406 | .probe = jz_battery_probe, | 406 | .probe = jz_battery_probe, |
407 | .remove = __devexit_p(jz_battery_remove), | 407 | .remove = jz_battery_remove, |
408 | .driver = { | 408 | .driver = { |
409 | .name = "jz4740-battery", | 409 | .name = "jz4740-battery", |
410 | .owner = THIS_MODULE, | 410 | .owner = THIS_MODULE, |
diff --git a/drivers/power/lp8727_charger.c b/drivers/power/lp8727_charger.c index c628224b7f58..4ee71a90e248 100644 --- a/drivers/power/lp8727_charger.c +++ b/drivers/power/lp8727_charger.c | |||
@@ -522,7 +522,7 @@ static int lp8727_probe(struct i2c_client *cl, const struct i2c_device_id *id) | |||
522 | return 0; | 522 | return 0; |
523 | } | 523 | } |
524 | 524 | ||
525 | static int __devexit lp8727_remove(struct i2c_client *cl) | 525 | static int lp8727_remove(struct i2c_client *cl) |
526 | { | 526 | { |
527 | struct lp8727_chg *pchg = i2c_get_clientdata(cl); | 527 | struct lp8727_chg *pchg = i2c_get_clientdata(cl); |
528 | 528 | ||
@@ -542,7 +542,7 @@ static struct i2c_driver lp8727_driver = { | |||
542 | .name = "lp8727", | 542 | .name = "lp8727", |
543 | }, | 543 | }, |
544 | .probe = lp8727_probe, | 544 | .probe = lp8727_probe, |
545 | .remove = __devexit_p(lp8727_remove), | 545 | .remove = lp8727_remove, |
546 | .id_table = lp8727_ids, | 546 | .id_table = lp8727_ids, |
547 | }; | 547 | }; |
548 | module_i2c_driver(lp8727_driver); | 548 | module_i2c_driver(lp8727_driver); |
diff --git a/drivers/power/lp8788-charger.c b/drivers/power/lp8788-charger.c index fb592bfbec6e..22b6407c9ca9 100644 --- a/drivers/power/lp8788-charger.c +++ b/drivers/power/lp8788-charger.c | |||
@@ -686,7 +686,7 @@ static const struct attribute_group lp8788_attr_group = { | |||
686 | .attrs = lp8788_charger_attr, | 686 | .attrs = lp8788_charger_attr, |
687 | }; | 687 | }; |
688 | 688 | ||
689 | static __devinit int lp8788_charger_probe(struct platform_device *pdev) | 689 | static int lp8788_charger_probe(struct platform_device *pdev) |
690 | { | 690 | { |
691 | struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); | 691 | struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); |
692 | struct lp8788_charger *pchg; | 692 | struct lp8788_charger *pchg; |
@@ -723,7 +723,7 @@ static __devinit int lp8788_charger_probe(struct platform_device *pdev) | |||
723 | return 0; | 723 | return 0; |
724 | } | 724 | } |
725 | 725 | ||
726 | static int __devexit lp8788_charger_remove(struct platform_device *pdev) | 726 | static int lp8788_charger_remove(struct platform_device *pdev) |
727 | { | 727 | { |
728 | struct lp8788_charger *pchg = platform_get_drvdata(pdev); | 728 | struct lp8788_charger *pchg = platform_get_drvdata(pdev); |
729 | 729 | ||
@@ -738,7 +738,7 @@ static int __devexit lp8788_charger_remove(struct platform_device *pdev) | |||
738 | 738 | ||
739 | static struct platform_driver lp8788_charger_driver = { | 739 | static struct platform_driver lp8788_charger_driver = { |
740 | .probe = lp8788_charger_probe, | 740 | .probe = lp8788_charger_probe, |
741 | .remove = __devexit_p(lp8788_charger_remove), | 741 | .remove = lp8788_charger_remove, |
742 | .driver = { | 742 | .driver = { |
743 | .name = LP8788_DEV_CHARGER, | 743 | .name = LP8788_DEV_CHARGER, |
744 | .owner = THIS_MODULE, | 744 | .owner = THIS_MODULE, |
diff --git a/drivers/power/max17040_battery.c b/drivers/power/max17040_battery.c index 58e67830143c..22cfe9cc4727 100644 --- a/drivers/power/max17040_battery.c +++ b/drivers/power/max17040_battery.c | |||
@@ -197,7 +197,7 @@ static enum power_supply_property max17040_battery_props[] = { | |||
197 | POWER_SUPPLY_PROP_CAPACITY, | 197 | POWER_SUPPLY_PROP_CAPACITY, |
198 | }; | 198 | }; |
199 | 199 | ||
200 | static int __devinit max17040_probe(struct i2c_client *client, | 200 | static int max17040_probe(struct i2c_client *client, |
201 | const struct i2c_device_id *id) | 201 | const struct i2c_device_id *id) |
202 | { | 202 | { |
203 | struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); | 203 | struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); |
@@ -238,7 +238,7 @@ static int __devinit max17040_probe(struct i2c_client *client, | |||
238 | return 0; | 238 | return 0; |
239 | } | 239 | } |
240 | 240 | ||
241 | static int __devexit max17040_remove(struct i2c_client *client) | 241 | static int max17040_remove(struct i2c_client *client) |
242 | { | 242 | { |
243 | struct max17040_chip *chip = i2c_get_clientdata(client); | 243 | struct max17040_chip *chip = i2c_get_clientdata(client); |
244 | 244 | ||
@@ -285,7 +285,7 @@ static struct i2c_driver max17040_i2c_driver = { | |||
285 | .name = "max17040", | 285 | .name = "max17040", |
286 | }, | 286 | }, |
287 | .probe = max17040_probe, | 287 | .probe = max17040_probe, |
288 | .remove = __devexit_p(max17040_remove), | 288 | .remove = max17040_remove, |
289 | .suspend = max17040_suspend, | 289 | .suspend = max17040_suspend, |
290 | .resume = max17040_resume, | 290 | .resume = max17040_resume, |
291 | .id_table = max17040_id, | 291 | .id_table = max17040_id, |
diff --git a/drivers/power/max17042_battery.c b/drivers/power/max17042_battery.c index 66b2c7b50914..d664ef58afa7 100644 --- a/drivers/power/max17042_battery.c +++ b/drivers/power/max17042_battery.c | |||
@@ -682,7 +682,7 @@ max17042_get_pdata(struct device *dev) | |||
682 | } | 682 | } |
683 | #endif | 683 | #endif |
684 | 684 | ||
685 | static int __devinit max17042_probe(struct i2c_client *client, | 685 | static int max17042_probe(struct i2c_client *client, |
686 | const struct i2c_device_id *id) | 686 | const struct i2c_device_id *id) |
687 | { | 687 | { |
688 | struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); | 688 | struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); |
@@ -776,7 +776,7 @@ static int __devinit max17042_probe(struct i2c_client *client, | |||
776 | return 0; | 776 | return 0; |
777 | } | 777 | } |
778 | 778 | ||
779 | static int __devexit max17042_remove(struct i2c_client *client) | 779 | static int max17042_remove(struct i2c_client *client) |
780 | { | 780 | { |
781 | struct max17042_chip *chip = i2c_get_clientdata(client); | 781 | struct max17042_chip *chip = i2c_get_clientdata(client); |
782 | 782 | ||
@@ -852,7 +852,7 @@ static struct i2c_driver max17042_i2c_driver = { | |||
852 | .pm = MAX17042_PM_OPS, | 852 | .pm = MAX17042_PM_OPS, |
853 | }, | 853 | }, |
854 | .probe = max17042_probe, | 854 | .probe = max17042_probe, |
855 | .remove = __devexit_p(max17042_remove), | 855 | .remove = max17042_remove, |
856 | .id_table = max17042_id, | 856 | .id_table = max17042_id, |
857 | }; | 857 | }; |
858 | module_i2c_driver(max17042_i2c_driver); | 858 | module_i2c_driver(max17042_i2c_driver); |
diff --git a/drivers/power/max8903_charger.c b/drivers/power/max8903_charger.c index 3e23f43e98af..14e2b96d93b0 100644 --- a/drivers/power/max8903_charger.c +++ b/drivers/power/max8903_charger.c | |||
@@ -179,7 +179,7 @@ static irqreturn_t max8903_fault(int irq, void *_data) | |||
179 | return IRQ_HANDLED; | 179 | return IRQ_HANDLED; |
180 | } | 180 | } |
181 | 181 | ||
182 | static __devinit int max8903_probe(struct platform_device *pdev) | 182 | static int max8903_probe(struct platform_device *pdev) |
183 | { | 183 | { |
184 | struct max8903_data *data; | 184 | struct max8903_data *data; |
185 | struct device *dev = &pdev->dev; | 185 | struct device *dev = &pdev->dev; |
@@ -345,7 +345,7 @@ err: | |||
345 | return ret; | 345 | return ret; |
346 | } | 346 | } |
347 | 347 | ||
348 | static __devexit int max8903_remove(struct platform_device *pdev) | 348 | static int max8903_remove(struct platform_device *pdev) |
349 | { | 349 | { |
350 | struct max8903_data *data = platform_get_drvdata(pdev); | 350 | struct max8903_data *data = platform_get_drvdata(pdev); |
351 | 351 | ||
@@ -367,7 +367,7 @@ static __devexit int max8903_remove(struct platform_device *pdev) | |||
367 | 367 | ||
368 | static struct platform_driver max8903_driver = { | 368 | static struct platform_driver max8903_driver = { |
369 | .probe = max8903_probe, | 369 | .probe = max8903_probe, |
370 | .remove = __devexit_p(max8903_remove), | 370 | .remove = max8903_remove, |
371 | .driver = { | 371 | .driver = { |
372 | .name = "max8903-charger", | 372 | .name = "max8903-charger", |
373 | .owner = THIS_MODULE, | 373 | .owner = THIS_MODULE, |
diff --git a/drivers/power/max8925_power.c b/drivers/power/max8925_power.c index b5a3ccb16a14..665cdc76c265 100644 --- a/drivers/power/max8925_power.c +++ b/drivers/power/max8925_power.c | |||
@@ -357,7 +357,7 @@ do { \ | |||
357 | _irq, ret); \ | 357 | _irq, ret); \ |
358 | } while (0) | 358 | } while (0) |
359 | 359 | ||
360 | static __devinit int max8925_init_charger(struct max8925_chip *chip, | 360 | static int max8925_init_charger(struct max8925_chip *chip, |
361 | struct max8925_power_info *info) | 361 | struct max8925_power_info *info) |
362 | { | 362 | { |
363 | int ret; | 363 | int ret; |
@@ -415,7 +415,7 @@ static __devinit int max8925_init_charger(struct max8925_chip *chip, | |||
415 | return 0; | 415 | return 0; |
416 | } | 416 | } |
417 | 417 | ||
418 | static __devexit int max8925_deinit_charger(struct max8925_power_info *info) | 418 | static int max8925_deinit_charger(struct max8925_power_info *info) |
419 | { | 419 | { |
420 | struct max8925_chip *chip = info->chip; | 420 | struct max8925_chip *chip = info->chip; |
421 | int irq; | 421 | int irq; |
@@ -475,7 +475,7 @@ max8925_power_dt_init(struct platform_device *pdev) | |||
475 | } | 475 | } |
476 | #endif | 476 | #endif |
477 | 477 | ||
478 | static __devinit int max8925_power_probe(struct platform_device *pdev) | 478 | static int max8925_power_probe(struct platform_device *pdev) |
479 | { | 479 | { |
480 | struct max8925_chip *chip = dev_get_drvdata(pdev->dev.parent); | 480 | struct max8925_chip *chip = dev_get_drvdata(pdev->dev.parent); |
481 | struct max8925_power_pdata *pdata = NULL; | 481 | struct max8925_power_pdata *pdata = NULL; |
@@ -550,7 +550,7 @@ out: | |||
550 | return ret; | 550 | return ret; |
551 | } | 551 | } |
552 | 552 | ||
553 | static __devexit int max8925_power_remove(struct platform_device *pdev) | 553 | static int max8925_power_remove(struct platform_device *pdev) |
554 | { | 554 | { |
555 | struct max8925_power_info *info = platform_get_drvdata(pdev); | 555 | struct max8925_power_info *info = platform_get_drvdata(pdev); |
556 | 556 | ||
@@ -566,7 +566,7 @@ static __devexit int max8925_power_remove(struct platform_device *pdev) | |||
566 | 566 | ||
567 | static struct platform_driver max8925_power_driver = { | 567 | static struct platform_driver max8925_power_driver = { |
568 | .probe = max8925_power_probe, | 568 | .probe = max8925_power_probe, |
569 | .remove = __devexit_p(max8925_power_remove), | 569 | .remove = max8925_power_remove, |
570 | .driver = { | 570 | .driver = { |
571 | .name = "max8925-power", | 571 | .name = "max8925-power", |
572 | }, | 572 | }, |
diff --git a/drivers/power/max8997_charger.c b/drivers/power/max8997_charger.c index 6e88c5d026b9..e757885b620c 100644 --- a/drivers/power/max8997_charger.c +++ b/drivers/power/max8997_charger.c | |||
@@ -86,7 +86,7 @@ static int max8997_battery_get_property(struct power_supply *psy, | |||
86 | return 0; | 86 | return 0; |
87 | } | 87 | } |
88 | 88 | ||
89 | static __devinit int max8997_battery_probe(struct platform_device *pdev) | 89 | static int max8997_battery_probe(struct platform_device *pdev) |
90 | { | 90 | { |
91 | int ret = 0; | 91 | int ret = 0; |
92 | struct charger_data *charger; | 92 | struct charger_data *charger; |
@@ -167,7 +167,7 @@ err: | |||
167 | return ret; | 167 | return ret; |
168 | } | 168 | } |
169 | 169 | ||
170 | static int __devexit max8997_battery_remove(struct platform_device *pdev) | 170 | static int max8997_battery_remove(struct platform_device *pdev) |
171 | { | 171 | { |
172 | struct charger_data *charger = platform_get_drvdata(pdev); | 172 | struct charger_data *charger = platform_get_drvdata(pdev); |
173 | 173 | ||
@@ -187,7 +187,7 @@ static struct platform_driver max8997_battery_driver = { | |||
187 | .owner = THIS_MODULE, | 187 | .owner = THIS_MODULE, |
188 | }, | 188 | }, |
189 | .probe = max8997_battery_probe, | 189 | .probe = max8997_battery_probe, |
190 | .remove = __devexit_p(max8997_battery_remove), | 190 | .remove = max8997_battery_remove, |
191 | .id_table = max8997_battery_id, | 191 | .id_table = max8997_battery_id, |
192 | }; | 192 | }; |
193 | 193 | ||
diff --git a/drivers/power/max8998_charger.c b/drivers/power/max8998_charger.c index 6dc01c255592..bf677e3daec9 100644 --- a/drivers/power/max8998_charger.c +++ b/drivers/power/max8998_charger.c | |||
@@ -75,7 +75,7 @@ static int max8998_battery_get_property(struct power_supply *psy, | |||
75 | return 0; | 75 | return 0; |
76 | } | 76 | } |
77 | 77 | ||
78 | static __devinit int max8998_battery_probe(struct platform_device *pdev) | 78 | static int max8998_battery_probe(struct platform_device *pdev) |
79 | { | 79 | { |
80 | struct max8998_dev *iodev = dev_get_drvdata(pdev->dev.parent); | 80 | struct max8998_dev *iodev = dev_get_drvdata(pdev->dev.parent); |
81 | struct max8998_platform_data *pdata = dev_get_platdata(iodev->dev); | 81 | struct max8998_platform_data *pdata = dev_get_platdata(iodev->dev); |
@@ -178,7 +178,7 @@ err: | |||
178 | return ret; | 178 | return ret; |
179 | } | 179 | } |
180 | 180 | ||
181 | static int __devexit max8998_battery_remove(struct platform_device *pdev) | 181 | static int max8998_battery_remove(struct platform_device *pdev) |
182 | { | 182 | { |
183 | struct max8998_battery_data *max8998 = platform_get_drvdata(pdev); | 183 | struct max8998_battery_data *max8998 = platform_get_drvdata(pdev); |
184 | 184 | ||
@@ -199,7 +199,7 @@ static struct platform_driver max8998_battery_driver = { | |||
199 | .owner = THIS_MODULE, | 199 | .owner = THIS_MODULE, |
200 | }, | 200 | }, |
201 | .probe = max8998_battery_probe, | 201 | .probe = max8998_battery_probe, |
202 | .remove = __devexit_p(max8998_battery_remove), | 202 | .remove = max8998_battery_remove, |
203 | .id_table = max8998_battery_id, | 203 | .id_table = max8998_battery_id, |
204 | }; | 204 | }; |
205 | 205 | ||
diff --git a/drivers/power/olpc_battery.c b/drivers/power/olpc_battery.c index a89a41acf9c5..298c47d111b4 100644 --- a/drivers/power/olpc_battery.c +++ b/drivers/power/olpc_battery.c | |||
@@ -598,7 +598,7 @@ static int olpc_battery_suspend(struct platform_device *pdev, | |||
598 | return 0; | 598 | return 0; |
599 | } | 599 | } |
600 | 600 | ||
601 | static int __devinit olpc_battery_probe(struct platform_device *pdev) | 601 | static int olpc_battery_probe(struct platform_device *pdev) |
602 | { | 602 | { |
603 | int ret; | 603 | int ret; |
604 | uint8_t status; | 604 | uint8_t status; |
@@ -659,7 +659,7 @@ battery_failed: | |||
659 | return ret; | 659 | return ret; |
660 | } | 660 | } |
661 | 661 | ||
662 | static int __devexit olpc_battery_remove(struct platform_device *pdev) | 662 | static int olpc_battery_remove(struct platform_device *pdev) |
663 | { | 663 | { |
664 | device_remove_file(olpc_bat.dev, &olpc_bat_error); | 664 | device_remove_file(olpc_bat.dev, &olpc_bat_error); |
665 | device_remove_bin_file(olpc_bat.dev, &olpc_bat_eeprom); | 665 | device_remove_bin_file(olpc_bat.dev, &olpc_bat_eeprom); |
@@ -681,7 +681,7 @@ static struct platform_driver olpc_battery_driver = { | |||
681 | .of_match_table = olpc_battery_ids, | 681 | .of_match_table = olpc_battery_ids, |
682 | }, | 682 | }, |
683 | .probe = olpc_battery_probe, | 683 | .probe = olpc_battery_probe, |
684 | .remove = __devexit_p(olpc_battery_remove), | 684 | .remove = olpc_battery_remove, |
685 | .suspend = olpc_battery_suspend, | 685 | .suspend = olpc_battery_suspend, |
686 | }; | 686 | }; |
687 | 687 | ||
diff --git a/drivers/power/pcf50633-charger.c b/drivers/power/pcf50633-charger.c index 3d1e9efb6f53..c2122a7ad065 100644 --- a/drivers/power/pcf50633-charger.c +++ b/drivers/power/pcf50633-charger.c | |||
@@ -366,7 +366,7 @@ static const u8 mbc_irq_handlers[] = { | |||
366 | PCF50633_IRQ_LOWBAT, | 366 | PCF50633_IRQ_LOWBAT, |
367 | }; | 367 | }; |
368 | 368 | ||
369 | static int __devinit pcf50633_mbc_probe(struct platform_device *pdev) | 369 | static int pcf50633_mbc_probe(struct platform_device *pdev) |
370 | { | 370 | { |
371 | struct pcf50633_mbc *mbc; | 371 | struct pcf50633_mbc *mbc; |
372 | int ret; | 372 | int ret; |
@@ -447,7 +447,7 @@ static int __devinit pcf50633_mbc_probe(struct platform_device *pdev) | |||
447 | return 0; | 447 | return 0; |
448 | } | 448 | } |
449 | 449 | ||
450 | static int __devexit pcf50633_mbc_remove(struct platform_device *pdev) | 450 | static int pcf50633_mbc_remove(struct platform_device *pdev) |
451 | { | 451 | { |
452 | struct pcf50633_mbc *mbc = platform_get_drvdata(pdev); | 452 | struct pcf50633_mbc *mbc = platform_get_drvdata(pdev); |
453 | int i; | 453 | int i; |
@@ -471,7 +471,7 @@ static struct platform_driver pcf50633_mbc_driver = { | |||
471 | .name = "pcf50633-mbc", | 471 | .name = "pcf50633-mbc", |
472 | }, | 472 | }, |
473 | .probe = pcf50633_mbc_probe, | 473 | .probe = pcf50633_mbc_probe, |
474 | .remove = __devexit_p(pcf50633_mbc_remove), | 474 | .remove = pcf50633_mbc_remove, |
475 | }; | 475 | }; |
476 | 476 | ||
477 | module_platform_driver(pcf50633_mbc_driver); | 477 | module_platform_driver(pcf50633_mbc_driver); |
diff --git a/drivers/power/s3c_adc_battery.c b/drivers/power/s3c_adc_battery.c index 8b804a566756..d2ca989dcbdc 100644 --- a/drivers/power/s3c_adc_battery.c +++ b/drivers/power/s3c_adc_battery.c | |||
@@ -286,7 +286,7 @@ static irqreturn_t s3c_adc_bat_charged(int irq, void *dev_id) | |||
286 | return IRQ_HANDLED; | 286 | return IRQ_HANDLED; |
287 | } | 287 | } |
288 | 288 | ||
289 | static int __devinit s3c_adc_bat_probe(struct platform_device *pdev) | 289 | static int s3c_adc_bat_probe(struct platform_device *pdev) |
290 | { | 290 | { |
291 | struct s3c_adc_client *client; | 291 | struct s3c_adc_client *client; |
292 | struct s3c_adc_bat_pdata *pdata = pdev->dev.platform_data; | 292 | struct s3c_adc_bat_pdata *pdata = pdev->dev.platform_data; |
diff --git a/drivers/power/sbs-battery.c b/drivers/power/sbs-battery.c index 4146596d254b..3960f0b2afe9 100644 --- a/drivers/power/sbs-battery.c +++ b/drivers/power/sbs-battery.c | |||
@@ -675,7 +675,7 @@ static struct sbs_platform_data *sbs_of_populate_pdata( | |||
675 | } | 675 | } |
676 | #endif | 676 | #endif |
677 | 677 | ||
678 | static int __devinit sbs_probe(struct i2c_client *client, | 678 | static int sbs_probe(struct i2c_client *client, |
679 | const struct i2c_device_id *id) | 679 | const struct i2c_device_id *id) |
680 | { | 680 | { |
681 | struct sbs_info *chip; | 681 | struct sbs_info *chip; |
@@ -800,7 +800,7 @@ exit_free_name: | |||
800 | return rc; | 800 | return rc; |
801 | } | 801 | } |
802 | 802 | ||
803 | static int __devexit sbs_remove(struct i2c_client *client) | 803 | static int sbs_remove(struct i2c_client *client) |
804 | { | 804 | { |
805 | struct sbs_info *chip = i2c_get_clientdata(client); | 805 | struct sbs_info *chip = i2c_get_clientdata(client); |
806 | 806 | ||
@@ -853,7 +853,7 @@ MODULE_DEVICE_TABLE(i2c, sbs_id); | |||
853 | 853 | ||
854 | static struct i2c_driver sbs_battery_driver = { | 854 | static struct i2c_driver sbs_battery_driver = { |
855 | .probe = sbs_probe, | 855 | .probe = sbs_probe, |
856 | .remove = __devexit_p(sbs_remove), | 856 | .remove = sbs_remove, |
857 | .suspend = sbs_suspend, | 857 | .suspend = sbs_suspend, |
858 | .resume = sbs_resume, | 858 | .resume = sbs_resume, |
859 | .id_table = sbs_id, | 859 | .id_table = sbs_id, |
diff --git a/drivers/power/smb347-charger.c b/drivers/power/smb347-charger.c index a9707c11fbed..acf84e80fe98 100644 --- a/drivers/power/smb347-charger.c +++ b/drivers/power/smb347-charger.c | |||
@@ -1313,7 +1313,7 @@ static struct i2c_driver smb347_driver = { | |||
1313 | .name = "smb347", | 1313 | .name = "smb347", |
1314 | }, | 1314 | }, |
1315 | .probe = smb347_probe, | 1315 | .probe = smb347_probe, |
1316 | .remove = __devexit_p(smb347_remove), | 1316 | .remove = smb347_remove, |
1317 | .id_table = smb347_id, | 1317 | .id_table = smb347_id, |
1318 | }; | 1318 | }; |
1319 | 1319 | ||
diff --git a/drivers/power/tosa_battery.c b/drivers/power/tosa_battery.c index 51199b5ce221..0224de50c540 100644 --- a/drivers/power/tosa_battery.c +++ b/drivers/power/tosa_battery.c | |||
@@ -342,7 +342,7 @@ static int tosa_bat_resume(struct platform_device *dev) | |||
342 | #define tosa_bat_resume NULL | 342 | #define tosa_bat_resume NULL |
343 | #endif | 343 | #endif |
344 | 344 | ||
345 | static int __devinit tosa_bat_probe(struct platform_device *dev) | 345 | static int tosa_bat_probe(struct platform_device *dev) |
346 | { | 346 | { |
347 | int ret; | 347 | int ret; |
348 | 348 | ||
@@ -409,7 +409,7 @@ err_psy_reg_main: | |||
409 | return ret; | 409 | return ret; |
410 | } | 410 | } |
411 | 411 | ||
412 | static int __devexit tosa_bat_remove(struct platform_device *dev) | 412 | static int tosa_bat_remove(struct platform_device *dev) |
413 | { | 413 | { |
414 | free_irq(gpio_to_irq(TOSA_GPIO_JACKET_DETECT), &tosa_bat_jacket); | 414 | free_irq(gpio_to_irq(TOSA_GPIO_JACKET_DETECT), &tosa_bat_jacket); |
415 | free_irq(gpio_to_irq(TOSA_GPIO_BAT1_CRG), &tosa_bat_jacket); | 415 | free_irq(gpio_to_irq(TOSA_GPIO_BAT1_CRG), &tosa_bat_jacket); |
@@ -433,7 +433,7 @@ static struct platform_driver tosa_bat_driver = { | |||
433 | .driver.name = "wm97xx-battery", | 433 | .driver.name = "wm97xx-battery", |
434 | .driver.owner = THIS_MODULE, | 434 | .driver.owner = THIS_MODULE, |
435 | .probe = tosa_bat_probe, | 435 | .probe = tosa_bat_probe, |
436 | .remove = __devexit_p(tosa_bat_remove), | 436 | .remove = tosa_bat_remove, |
437 | .suspend = tosa_bat_suspend, | 437 | .suspend = tosa_bat_suspend, |
438 | .resume = tosa_bat_resume, | 438 | .resume = tosa_bat_resume, |
439 | }; | 439 | }; |
diff --git a/drivers/power/wm831x_backup.c b/drivers/power/wm831x_backup.c index 6243e6975126..d9cc169f1424 100644 --- a/drivers/power/wm831x_backup.c +++ b/drivers/power/wm831x_backup.c | |||
@@ -161,7 +161,7 @@ static enum power_supply_property wm831x_backup_props[] = { | |||
161 | * Initialisation | 161 | * Initialisation |
162 | *********************************************************************/ | 162 | *********************************************************************/ |
163 | 163 | ||
164 | static __devinit int wm831x_backup_probe(struct platform_device *pdev) | 164 | static int wm831x_backup_probe(struct platform_device *pdev) |
165 | { | 165 | { |
166 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); | 166 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); |
167 | struct wm831x_pdata *wm831x_pdata = wm831x->dev->platform_data; | 167 | struct wm831x_pdata *wm831x_pdata = wm831x->dev->platform_data; |
@@ -207,7 +207,7 @@ err_kmalloc: | |||
207 | return ret; | 207 | return ret; |
208 | } | 208 | } |
209 | 209 | ||
210 | static __devexit int wm831x_backup_remove(struct platform_device *pdev) | 210 | static int wm831x_backup_remove(struct platform_device *pdev) |
211 | { | 211 | { |
212 | struct wm831x_backup *devdata = platform_get_drvdata(pdev); | 212 | struct wm831x_backup *devdata = platform_get_drvdata(pdev); |
213 | 213 | ||
@@ -220,7 +220,7 @@ static __devexit int wm831x_backup_remove(struct platform_device *pdev) | |||
220 | 220 | ||
221 | static struct platform_driver wm831x_backup_driver = { | 221 | static struct platform_driver wm831x_backup_driver = { |
222 | .probe = wm831x_backup_probe, | 222 | .probe = wm831x_backup_probe, |
223 | .remove = __devexit_p(wm831x_backup_remove), | 223 | .remove = wm831x_backup_remove, |
224 | .driver = { | 224 | .driver = { |
225 | .name = "wm831x-backup", | 225 | .name = "wm831x-backup", |
226 | }, | 226 | }, |
diff --git a/drivers/power/wm831x_power.c b/drivers/power/wm831x_power.c index fc1ad9551182..3bed2f55cf7d 100644 --- a/drivers/power/wm831x_power.c +++ b/drivers/power/wm831x_power.c | |||
@@ -489,7 +489,7 @@ static irqreturn_t wm831x_pwr_src_irq(int irq, void *data) | |||
489 | return IRQ_HANDLED; | 489 | return IRQ_HANDLED; |
490 | } | 490 | } |
491 | 491 | ||
492 | static __devinit int wm831x_power_probe(struct platform_device *pdev) | 492 | static int wm831x_power_probe(struct platform_device *pdev) |
493 | { | 493 | { |
494 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); | 494 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); |
495 | struct wm831x_pdata *wm831x_pdata = wm831x->dev->platform_data; | 495 | struct wm831x_pdata *wm831x_pdata = wm831x->dev->platform_data; |
@@ -625,7 +625,7 @@ err_kmalloc: | |||
625 | return ret; | 625 | return ret; |
626 | } | 626 | } |
627 | 627 | ||
628 | static __devexit int wm831x_power_remove(struct platform_device *pdev) | 628 | static int wm831x_power_remove(struct platform_device *pdev) |
629 | { | 629 | { |
630 | struct wm831x_power *wm831x_power = platform_get_drvdata(pdev); | 630 | struct wm831x_power *wm831x_power = platform_get_drvdata(pdev); |
631 | struct wm831x *wm831x = wm831x_power->wm831x; | 631 | struct wm831x *wm831x = wm831x_power->wm831x; |
@@ -654,7 +654,7 @@ static __devexit int wm831x_power_remove(struct platform_device *pdev) | |||
654 | 654 | ||
655 | static struct platform_driver wm831x_power_driver = { | 655 | static struct platform_driver wm831x_power_driver = { |
656 | .probe = wm831x_power_probe, | 656 | .probe = wm831x_power_probe, |
657 | .remove = __devexit_p(wm831x_power_remove), | 657 | .remove = wm831x_power_remove, |
658 | .driver = { | 658 | .driver = { |
659 | .name = "wm831x-power", | 659 | .name = "wm831x-power", |
660 | }, | 660 | }, |
diff --git a/drivers/power/wm8350_power.c b/drivers/power/wm8350_power.c index fae04d384657..b3607e2906d2 100644 --- a/drivers/power/wm8350_power.c +++ b/drivers/power/wm8350_power.c | |||
@@ -442,7 +442,7 @@ static void free_charger_irq(struct wm8350 *wm8350) | |||
442 | wm8350_free_irq(wm8350, WM8350_IRQ_EXT_BAT_FB, wm8350); | 442 | wm8350_free_irq(wm8350, WM8350_IRQ_EXT_BAT_FB, wm8350); |
443 | } | 443 | } |
444 | 444 | ||
445 | static __devinit int wm8350_power_probe(struct platform_device *pdev) | 445 | static int wm8350_power_probe(struct platform_device *pdev) |
446 | { | 446 | { |
447 | struct wm8350 *wm8350 = platform_get_drvdata(pdev); | 447 | struct wm8350 *wm8350 = platform_get_drvdata(pdev); |
448 | struct wm8350_power *power = &wm8350->power; | 448 | struct wm8350_power *power = &wm8350->power; |
@@ -501,7 +501,7 @@ battery_failed: | |||
501 | return ret; | 501 | return ret; |
502 | } | 502 | } |
503 | 503 | ||
504 | static __devexit int wm8350_power_remove(struct platform_device *pdev) | 504 | static int wm8350_power_remove(struct platform_device *pdev) |
505 | { | 505 | { |
506 | struct wm8350 *wm8350 = platform_get_drvdata(pdev); | 506 | struct wm8350 *wm8350 = platform_get_drvdata(pdev); |
507 | struct wm8350_power *power = &wm8350->power; | 507 | struct wm8350_power *power = &wm8350->power; |
@@ -516,7 +516,7 @@ static __devexit int wm8350_power_remove(struct platform_device *pdev) | |||
516 | 516 | ||
517 | static struct platform_driver wm8350_power_driver = { | 517 | static struct platform_driver wm8350_power_driver = { |
518 | .probe = wm8350_power_probe, | 518 | .probe = wm8350_power_probe, |
519 | .remove = __devexit_p(wm8350_power_remove), | 519 | .remove = wm8350_power_remove, |
520 | .driver = { | 520 | .driver = { |
521 | .name = "wm8350-power", | 521 | .name = "wm8350-power", |
522 | }, | 522 | }, |
diff --git a/drivers/power/wm97xx_battery.c b/drivers/power/wm97xx_battery.c index e128a813dc24..58f7348e6c22 100644 --- a/drivers/power/wm97xx_battery.c +++ b/drivers/power/wm97xx_battery.c | |||
@@ -162,7 +162,7 @@ static const struct dev_pm_ops wm97xx_bat_pm_ops = { | |||
162 | }; | 162 | }; |
163 | #endif | 163 | #endif |
164 | 164 | ||
165 | static int __devinit wm97xx_bat_probe(struct platform_device *dev) | 165 | static int wm97xx_bat_probe(struct platform_device *dev) |
166 | { | 166 | { |
167 | int ret = 0; | 167 | int ret = 0; |
168 | int props = 1; /* POWER_SUPPLY_PROP_PRESENT */ | 168 | int props = 1; /* POWER_SUPPLY_PROP_PRESENT */ |
@@ -263,7 +263,7 @@ err: | |||
263 | return ret; | 263 | return ret; |
264 | } | 264 | } |
265 | 265 | ||
266 | static int __devexit wm97xx_bat_remove(struct platform_device *dev) | 266 | static int wm97xx_bat_remove(struct platform_device *dev) |
267 | { | 267 | { |
268 | struct wm97xx_pdata *wmdata = dev->dev.platform_data; | 268 | struct wm97xx_pdata *wmdata = dev->dev.platform_data; |
269 | struct wm97xx_batt_pdata *pdata = wmdata->batt_pdata; | 269 | struct wm97xx_batt_pdata *pdata = wmdata->batt_pdata; |
@@ -287,7 +287,7 @@ static struct platform_driver wm97xx_bat_driver = { | |||
287 | #endif | 287 | #endif |
288 | }, | 288 | }, |
289 | .probe = wm97xx_bat_probe, | 289 | .probe = wm97xx_bat_probe, |
290 | .remove = __devexit_p(wm97xx_bat_remove), | 290 | .remove = wm97xx_bat_remove, |
291 | }; | 291 | }; |
292 | 292 | ||
293 | module_platform_driver(wm97xx_bat_driver); | 293 | module_platform_driver(wm97xx_bat_driver); |
diff --git a/drivers/power/z2_battery.c b/drivers/power/z2_battery.c index 5757d0d6782f..814d2e31f0c9 100644 --- a/drivers/power/z2_battery.c +++ b/drivers/power/z2_battery.c | |||
@@ -180,7 +180,7 @@ static int z2_batt_ps_init(struct z2_charger *charger, int props) | |||
180 | return 0; | 180 | return 0; |
181 | } | 181 | } |
182 | 182 | ||
183 | static int __devinit z2_batt_probe(struct i2c_client *client, | 183 | static int z2_batt_probe(struct i2c_client *client, |
184 | const struct i2c_device_id *id) | 184 | const struct i2c_device_id *id) |
185 | { | 185 | { |
186 | int ret = 0; | 186 | int ret = 0; |
@@ -251,7 +251,7 @@ err: | |||
251 | return ret; | 251 | return ret; |
252 | } | 252 | } |
253 | 253 | ||
254 | static int __devexit z2_batt_remove(struct i2c_client *client) | 254 | static int z2_batt_remove(struct i2c_client *client) |
255 | { | 255 | { |
256 | struct z2_charger *charger = i2c_get_clientdata(client); | 256 | struct z2_charger *charger = i2c_get_clientdata(client); |
257 | struct z2_battery_info *info = charger->info; | 257 | struct z2_battery_info *info = charger->info; |
@@ -313,7 +313,7 @@ static struct i2c_driver z2_batt_driver = { | |||
313 | .pm = Z2_BATTERY_PM_OPS | 313 | .pm = Z2_BATTERY_PM_OPS |
314 | }, | 314 | }, |
315 | .probe = z2_batt_probe, | 315 | .probe = z2_batt_probe, |
316 | .remove = __devexit_p(z2_batt_remove), | 316 | .remove = z2_batt_remove, |
317 | .id_table = z2_batt_id, | 317 | .id_table = z2_batt_id, |
318 | }; | 318 | }; |
319 | module_i2c_driver(z2_batt_driver); | 319 | module_i2c_driver(z2_batt_driver); |