diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-23 17:58:34 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-01-08 18:37:31 -0500 |
commit | 65349d60d27e850c94544567c91ab1be3e4c0777 (patch) | |
tree | 94344d80022bd870caa8ceab73df5a51c954a5dc /drivers/mfd/tc6387xb.c | |
parent | 35ca98423a4c61decc20cd1d1e78a7fd7111e4db (diff) |
mfd: Convert MFD drivers to use module_platform_driver
Factors out some boilerplate code for drivers doing the default thing
for platform driver registration. Drivers using platform_driver_probe
or an initcall other than module_init can't be converted.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/tc6387xb.c')
-rw-r--r-- | drivers/mfd/tc6387xb.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/mfd/tc6387xb.c b/drivers/mfd/tc6387xb.c index 71bc835324d8..d20a284ad4ba 100644 --- a/drivers/mfd/tc6387xb.c +++ b/drivers/mfd/tc6387xb.c | |||
@@ -234,19 +234,7 @@ static struct platform_driver tc6387xb_platform_driver = { | |||
234 | .resume = tc6387xb_resume, | 234 | .resume = tc6387xb_resume, |
235 | }; | 235 | }; |
236 | 236 | ||
237 | 237 | module_platform_driver(tc6387xb_platform_driver); | |
238 | static int __init tc6387xb_init(void) | ||
239 | { | ||
240 | return platform_driver_register(&tc6387xb_platform_driver); | ||
241 | } | ||
242 | |||
243 | static void __exit tc6387xb_exit(void) | ||
244 | { | ||
245 | platform_driver_unregister(&tc6387xb_platform_driver); | ||
246 | } | ||
247 | |||
248 | module_init(tc6387xb_init); | ||
249 | module_exit(tc6387xb_exit); | ||
250 | 238 | ||
251 | MODULE_DESCRIPTION("Toshiba TC6387XB core driver"); | 239 | MODULE_DESCRIPTION("Toshiba TC6387XB core driver"); |
252 | MODULE_LICENSE("GPL v2"); | 240 | MODULE_LICENSE("GPL v2"); |