diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-01-22 02:33:49 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-24 19:31:48 -0500 |
commit | b00e126ffea89b687a83093546058b07aa054b4c (patch) | |
tree | b9dc95d02de0cb772d40554bbce670e4086e449d /drivers/misc/ti-st | |
parent | dcd6c92267155e70a94b3927bce681ce74b80d1f (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/ti-st')
-rw-r--r-- | drivers/misc/ti-st/st_kim.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/misc/ti-st/st_kim.c b/drivers/misc/ti-st/st_kim.c index a7a861ceee2d..7c14f8fd98db 100644 --- a/drivers/misc/ti-st/st_kim.c +++ b/drivers/misc/ti-st/st_kim.c | |||
@@ -837,19 +837,8 @@ static struct platform_driver kim_platform_driver = { | |||
837 | }, | 837 | }, |
838 | }; | 838 | }; |
839 | 839 | ||
840 | static int __init st_kim_init(void) | 840 | module_platform_driver(kim_platform_driver); |
841 | { | ||
842 | return platform_driver_register(&kim_platform_driver); | ||
843 | } | ||
844 | |||
845 | static void __exit st_kim_deinit(void) | ||
846 | { | ||
847 | platform_driver_unregister(&kim_platform_driver); | ||
848 | } | ||
849 | |||
850 | 841 | ||
851 | module_init(st_kim_init); | ||
852 | module_exit(st_kim_deinit); | ||
853 | MODULE_AUTHOR("Pavan Savoy <pavan_savoy@ti.com>"); | 842 | MODULE_AUTHOR("Pavan Savoy <pavan_savoy@ti.com>"); |
854 | MODULE_DESCRIPTION("Shared Transport Driver for TI BT/FM/GPS combo chips "); | 843 | MODULE_DESCRIPTION("Shared Transport Driver for TI BT/FM/GPS combo chips "); |
855 | MODULE_LICENSE("GPL"); | 844 | MODULE_LICENSE("GPL"); |