aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/max8997-muic.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-01-22 02:33:49 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-24 19:31:48 -0500
commitb00e126ffea89b687a83093546058b07aa054b4c (patch)
treeb9dc95d02de0cb772d40554bbce670e4086e449d /drivers/misc/max8997-muic.c
parentdcd6c92267155e70a94b3927bce681ce74b80d1f (diff)
MISC: convert drivers/misc/* to use module_platform_driver()
This patch converts the drivers in drivers/misc/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Ira W. Snyder <iws@ovro.caltech.edu> Cc: Pavan Savoy <pavan_savoy@ti.com> Cc: Donggeun Kim <dg77.kim@samsung.com> Acked-By: Pratyush Anand <pratyush.anand@st.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Pratyush Anand <pratyush.anand@st.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/misc/max8997-muic.c')
-rw-r--r--drivers/misc/max8997-muic.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/misc/max8997-muic.c b/drivers/misc/max8997-muic.c
index d74ef41aabd5..19591eaa492a 100644
--- a/drivers/misc/max8997-muic.c
+++ b/drivers/misc/max8997-muic.c
@@ -488,17 +488,7 @@ static struct platform_driver max8997_muic_driver = {
488 .remove = __devexit_p(max8997_muic_remove), 488 .remove = __devexit_p(max8997_muic_remove),
489}; 489};
490 490
491static int __init max8997_muic_init(void) 491module_platform_driver(max8997_muic_driver);
492{
493 return platform_driver_register(&max8997_muic_driver);
494}
495module_init(max8997_muic_init);
496
497static void __exit max8997_muic_exit(void)
498{
499 platform_driver_unregister(&max8997_muic_driver);
500}
501module_exit(max8997_muic_exit);
502 492
503MODULE_DESCRIPTION("Maxim MAX8997 MUIC driver"); 493MODULE_DESCRIPTION("Maxim MAX8997 MUIC driver");
504MODULE_AUTHOR("Donggeun Kim <dg77.kim@samsung.com>"); 494MODULE_AUTHOR("Donggeun Kim <dg77.kim@samsung.com>");