Commit 216f3ad9 authored by Mark Brown's avatar Mark Brown Committed by Wim Van Sebroeck

watchdog: Convert Wolfson drivers to module_platform_driver

Factors out some boilerplate code.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 07d106d0
...@@ -320,17 +320,7 @@ static struct platform_driver wm831x_wdt_driver = { ...@@ -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 = { ...@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment