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

bug 1351841

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

drivers/extcon/extcon-max77665.c

index ee35649..a9558e0 100644 (file)
@@ -142,7 +142,7 @@ static int max77665_enable_id_detect_interrupt(struct max77665_muic *muic)
        return ret;
 }
 
-static int __devinit max77665_muic_probe(struct platform_device *pdev)
+static int max77665_muic_probe(struct platform_device *pdev)
 {
        struct max77665_muic_platform_data *pdata;
        struct max77665_muic *muic;
@@ -220,7 +220,7 @@ scrub:
        return ret;
 }
 
-static int __devexit max77665_muic_remove(struct platform_device *pdev)
+static int max77665_muic_remove(struct platform_device *pdev)
 {
        struct max77665_muic *muic = platform_get_drvdata(pdev);
 
@@ -264,7 +264,7 @@ static struct platform_driver max77665_muic_driver = {
                .pm = &max77665_pm_ops,
        },
        .probe          = max77665_muic_probe,
-       .remove         = __devexit_p(max77665_muic_remove),
+       .remove         = max77665_muic_remove,
 };
 
 static int __init max77665_extcon_driver_init(void)