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:
parent
07d106d0a3
commit
216f3ad9aa
2 changed files with 2 additions and 22 deletions
|
@ -320,17 +320,7 @@ static struct platform_driver wm831x_wdt_driver = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init wm831x_wdt_init(void)
|
module_platform_driver(wm831x_wdt_driver);
|
||||||
{
|
|
||||||
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_AUTHOR("Mark Brown");
|
MODULE_AUTHOR("Mark Brown");
|
||||||
MODULE_DESCRIPTION("WM831x Watchdog");
|
MODULE_DESCRIPTION("WM831x Watchdog");
|
||||||
|
|
|
@ -311,17 +311,7 @@ static struct platform_driver wm8350_wdt_driver = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init wm8350_wdt_init(void)
|
module_platform_driver(wm8350_wdt_driver);
|
||||||
{
|
|
||||||
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_AUTHOR("Mark Brown");
|
MODULE_AUTHOR("Mark Brown");
|
||||||
MODULE_DESCRIPTION("WM8350 Watchdog");
|
MODULE_DESCRIPTION("WM8350 Watchdog");
|
||||||
|
|
Loading…
Reference in a new issue