]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
mmc: mvsdio: use module_platform_driver_probe()
authorJingoo Han <jg1.han@samsung.com>
Tue, 5 Mar 2013 03:54:06 +0000 (12:54 +0900)
committerChris Ball <cjb@laptop.org>
Fri, 22 Mar 2013 16:29:12 +0000 (12:29 -0400)
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/mvsdio.c

index 145cdaf000d1d31a0da6ed815c476655d902ec2d..2b7d5b72c7bb0b33b200db5d949f6aa4a458ee34 100644 (file)
@@ -881,18 +881,7 @@ static struct platform_driver mvsd_driver = {
        },
 };
 
-static int __init mvsd_init(void)
-{
-       return platform_driver_probe(&mvsd_driver, mvsd_probe);
-}
-
-static void __exit mvsd_exit(void)
-{
-       platform_driver_unregister(&mvsd_driver);
-}
-
-module_init(mvsd_init);
-module_exit(mvsd_exit);
+module_platform_driver_probe(mvsd_driver, mvsd_probe);
 
 /* maximum card clock frequency (default 50MHz) */
 module_param(maxfreq, int, 0);