power: max77665-charger: remove deprecated macros
Shridhar Rasal [Wed, 21 Aug 2013 08:51:48 +0000 (13:51 +0530)]
__devinit, __devexit are deprecared from K3.4 and above.
Remove usage from driver.

bug 1351841

Change-Id: If1ac6e020243009ed646eb268c8c82359a0592c4
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/264276
Reviewed-by: Automatic_Commit_Validation_User

drivers/power/max77665-charger.c

index 591e4b9..bcb22c5 100644 (file)
@@ -771,7 +771,7 @@ static void max77665_remove_sysfs_entry(struct device *dev)
        sysfs_remove_group(&dev->kobj, &max77665_chg_attr_group);
 }
 
-static __devinit int max77665_battery_probe(struct platform_device *pdev)
+static int max77665_battery_probe(struct platform_device *pdev)
 {
        int ret = 0;
        struct max77665_charger *charger;
@@ -868,7 +868,7 @@ free_mutex:
        return ret;
 }
 
-static int __devexit max77665_battery_remove(struct platform_device *pdev)
+static int max77665_battery_remove(struct platform_device *pdev)
 {
        struct max77665_charger *charger = platform_get_drvdata(pdev);
 
@@ -914,7 +914,7 @@ static struct platform_driver max77665_battery_driver = {
                .pm     = MAX77665_PM,
        },
        .probe = max77665_battery_probe,
-       .remove = __devexit_p(max77665_battery_remove),
+       .remove = max77665_battery_remove,
 
 };