watchdog: convert drivers/watchdog/* to use module_platform_driver_probe
This makes the code a bit smaller by getting rid of some boilerplate code. Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> Cc: Wim Van Sebroeck <wim@iguana.be> Cc: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

zatwierdzone przez
Greg Kroah-Hartman

rodzic
bab734fcdf
commit
1cb9204cc6
@@ -172,18 +172,7 @@ static struct platform_driver txx9wdt_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init watchdog_init(void)
|
||||
{
|
||||
return platform_driver_probe(&txx9wdt_driver, txx9wdt_probe);
|
||||
}
|
||||
|
||||
static void __exit watchdog_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&txx9wdt_driver);
|
||||
}
|
||||
|
||||
module_init(watchdog_init);
|
||||
module_exit(watchdog_exit);
|
||||
module_platform_driver_probe(txx9wdt_driver, txx9wdt_probe);
|
||||
|
||||
MODULE_DESCRIPTION("TXx9 Watchdog Driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
Reference in New Issue
Block a user