aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/t7l66xb.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-23 17:58:34 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2012-01-08 18:37:31 -0500
commit65349d60d27e850c94544567c91ab1be3e4c0777 (patch)
tree94344d80022bd870caa8ceab73df5a51c954a5dc /drivers/mfd/t7l66xb.c
parent35ca98423a4c61decc20cd1d1e78a7fd7111e4db (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/t7l66xb.c')
-rw-r--r--drivers/mfd/t7l66xb.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c
index 91ad21ef7721..2d9e8799e733 100644
--- a/drivers/mfd/t7l66xb.c
+++ b/drivers/mfd/t7l66xb.c
@@ -442,21 +442,7 @@ static struct platform_driver t7l66xb_platform_driver = {
442 442
443/*--------------------------------------------------------------------------*/ 443/*--------------------------------------------------------------------------*/
444 444
445static int __init t7l66xb_init(void) 445module_platform_driver(t7l66xb_platform_driver);
446{
447 int retval = 0;
448
449 retval = platform_driver_register(&t7l66xb_platform_driver);
450 return retval;
451}
452
453static void __exit t7l66xb_exit(void)
454{
455 platform_driver_unregister(&t7l66xb_platform_driver);
456}
457
458module_init(t7l66xb_init);
459module_exit(t7l66xb_exit);
460 446
461MODULE_DESCRIPTION("Toshiba T7L66XB core driver"); 447MODULE_DESCRIPTION("Toshiba T7L66XB core driver");
462MODULE_LICENSE("GPL v2"); 448MODULE_LICENSE("GPL v2");