watchdog: Convert Wolfson drivers to module_platform_driver
Factors out some boilerplate code. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
Родитель
07d106d0a3
Коммит
216f3ad9aa
|
@ -320,17 +320,7 @@ static struct platform_driver wm831x_wdt_driver = {
|
|||
},
|
||||
};
|
||||
|
||||
static int __init wm831x_wdt_init(void)
|
||||
{
|
||||
return platform_driver_register(&wm831x_wdt_driver);
|
||||
}
|
||||
module_init(wm831x_wdt_init);
|
||||
|
||||
static void __exit wm831x_wdt_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&wm831x_wdt_driver);
|
||||
}
|
||||
module_exit(wm831x_wdt_exit);
|
||||
module_platform_driver(wm831x_wdt_driver);
|
||||
|
||||
MODULE_AUTHOR("Mark Brown");
|
||||
MODULE_DESCRIPTION("WM831x Watchdog");
|
||||
|
|
|
@ -311,17 +311,7 @@ static struct platform_driver wm8350_wdt_driver = {
|
|||
},
|
||||
};
|
||||
|
||||
static int __init wm8350_wdt_init(void)
|
||||
{
|
||||
return platform_driver_register(&wm8350_wdt_driver);
|
||||
}
|
||||
module_init(wm8350_wdt_init);
|
||||
|
||||
static void __exit wm8350_wdt_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&wm8350_wdt_driver);
|
||||
}
|
||||
module_exit(wm8350_wdt_exit);
|
||||
module_platform_driver(wm8350_wdt_driver);
|
||||
|
||||
MODULE_AUTHOR("Mark Brown");
|
||||
MODULE_DESCRIPTION("WM8350 Watchdog");
|
||||
|
|
Загрузка…
Ссылка в новой задаче