aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-03-04 23:30:56 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2013-04-05 08:14:37 -0400
commit14ec6dae5b311eae8c14352112dc83cce507cf9c (patch)
treeb0b8fcd664400525f36a7383845bdefe17e3d7cb /drivers
parent307d2a5156eb5778fbc1fc29b0e31d34de9efcfc (diff)
mtd: sh_flctl: use module_platform_driver_probe()
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: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/sh_flctl.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c
index 57b3971c9c0a..5899738ffced 100644
--- a/drivers/mtd/nand/sh_flctl.c
+++ b/drivers/mtd/nand/sh_flctl.c
@@ -1223,18 +1223,7 @@ static struct platform_driver flctl_driver = {
1223 }, 1223 },
1224}; 1224};
1225 1225
1226static int __init flctl_nand_init(void) 1226module_platform_driver_probe(flctl_driver, flctl_probe);
1227{
1228 return platform_driver_probe(&flctl_driver, flctl_probe);
1229}
1230
1231static void __exit flctl_nand_cleanup(void)
1232{
1233 platform_driver_unregister(&flctl_driver);
1234}
1235
1236module_init(flctl_nand_init);
1237module_exit(flctl_nand_cleanup);
1238 1227
1239MODULE_LICENSE("GPL"); 1228MODULE_LICENSE("GPL");
1240MODULE_AUTHOR("Yoshihiro Shimoda"); 1229MODULE_AUTHOR("Yoshihiro Shimoda");