diff options
Diffstat (limited to 'drivers/watchdog/of_xilinx_wdt.c')
-rw-r--r-- | drivers/watchdog/of_xilinx_wdt.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/watchdog/of_xilinx_wdt.c b/drivers/watchdog/of_xilinx_wdt.c index 4ec741ac952c..f359ab85c3bc 100644 --- a/drivers/watchdog/of_xilinx_wdt.c +++ b/drivers/watchdog/of_xilinx_wdt.c | |||
@@ -414,18 +414,7 @@ static struct platform_driver xwdt_driver = { | |||
414 | }, | 414 | }, |
415 | }; | 415 | }; |
416 | 416 | ||
417 | static int __init xwdt_init(void) | 417 | module_platform_driver(xwdt_driver); |
418 | { | ||
419 | return platform_driver_register(&xwdt_driver); | ||
420 | } | ||
421 | |||
422 | static void __exit xwdt_exit(void) | ||
423 | { | ||
424 | platform_driver_unregister(&xwdt_driver); | ||
425 | } | ||
426 | |||
427 | module_init(xwdt_init); | ||
428 | module_exit(xwdt_exit); | ||
429 | 418 | ||
430 | MODULE_AUTHOR("Alejandro Cabrera <aldaya@gmail.com>"); | 419 | MODULE_AUTHOR("Alejandro Cabrera <aldaya@gmail.com>"); |
431 | MODULE_DESCRIPTION("Xilinx Watchdog driver"); | 420 | MODULE_DESCRIPTION("Xilinx Watchdog driver"); |