Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
[linux-2.6-microblaze.git] / drivers / iio / adc / palmas_gpadc.c
index 1ca6570..889b887 100644 (file)
@@ -834,18 +834,7 @@ static struct platform_driver palmas_gpadc_driver = {
                .of_match_table = of_palmas_gpadc_match_tbl,
        },
 };
-
-static int __init palmas_gpadc_init(void)
-{
-       return platform_driver_register(&palmas_gpadc_driver);
-}
-module_init(palmas_gpadc_init);
-
-static void __exit palmas_gpadc_exit(void)
-{
-       platform_driver_unregister(&palmas_gpadc_driver);
-}
-module_exit(palmas_gpadc_exit);
+module_platform_driver(palmas_gpadc_driver);
 
 MODULE_DESCRIPTION("palmas GPADC driver");
 MODULE_AUTHOR("Pradeep Goudagunta<pgoudagunta@nvidia.com>");