diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-03-04 23:30:56 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-04-05 08:14:37 -0400 |
commit | 14ec6dae5b311eae8c14352112dc83cce507cf9c (patch) | |
tree | b0b8fcd664400525f36a7383845bdefe17e3d7cb /drivers/mtd | |
parent | 307d2a5156eb5778fbc1fc29b0e31d34de9efcfc (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/mtd')
-rw-r--r-- | drivers/mtd/nand/sh_flctl.c | 13 |
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 | ||
1226 | static int __init flctl_nand_init(void) | 1226 | module_platform_driver_probe(flctl_driver, flctl_probe); |
1227 | { | ||
1228 | return platform_driver_probe(&flctl_driver, flctl_probe); | ||
1229 | } | ||
1230 | |||
1231 | static void __exit flctl_nand_cleanup(void) | ||
1232 | { | ||
1233 | platform_driver_unregister(&flctl_driver); | ||
1234 | } | ||
1235 | |||
1236 | module_init(flctl_nand_init); | ||
1237 | module_exit(flctl_nand_cleanup); | ||
1238 | 1227 | ||
1239 | MODULE_LICENSE("GPL"); | 1228 | MODULE_LICENSE("GPL"); |
1240 | MODULE_AUTHOR("Yoshihiro Shimoda"); | 1229 | MODULE_AUTHOR("Yoshihiro Shimoda"); |