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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
dcd6c92267
commit
b00e126ffe
@@ -837,19 +837,8 @@ static struct platform_driver kim_platform_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init st_kim_init(void)
|
||||
{
|
||||
return platform_driver_register(&kim_platform_driver);
|
||||
}
|
||||
module_platform_driver(kim_platform_driver);
|
||||
|
||||
static void __exit st_kim_deinit(void)
|
||||
{
|
||||
platform_driver_unregister(&kim_platform_driver);
|
||||
}
|
||||
|
||||
|
||||
module_init(st_kim_init);
|
||||
module_exit(st_kim_deinit);
|
||||
MODULE_AUTHOR("Pavan Savoy <pavan_savoy@ti.com>");
|
||||
MODULE_DESCRIPTION("Shared Transport Driver for TI BT/FM/GPS combo chips ");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
Reference in New Issue
Block a user