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>
此提交包含在:
@@ -458,17 +458,7 @@ static struct platform_driver ti_ssp_driver = {
|
||||
}
|
||||
};
|
||||
|
||||
static int __init ti_ssp_init(void)
|
||||
{
|
||||
return platform_driver_register(&ti_ssp_driver);
|
||||
}
|
||||
module_init(ti_ssp_init);
|
||||
|
||||
static void __exit ti_ssp_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&ti_ssp_driver);
|
||||
}
|
||||
module_exit(ti_ssp_exit);
|
||||
module_platform_driver(ti_ssp_driver);
|
||||
|
||||
MODULE_DESCRIPTION("Sequencer Serial Port (SSP) Driver");
|
||||
MODULE_AUTHOR("Cyril Chemparathy");
|
||||
|
新增問題並參考
封鎖使用者