diff options
Diffstat (limited to 'drivers/watchdog/stmp3xxx_wdt.c')
-rw-r--r-- | drivers/watchdog/stmp3xxx_wdt.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/watchdog/stmp3xxx_wdt.c b/drivers/watchdog/stmp3xxx_wdt.c index ac2346a452e5..4c2a4e8698f9 100644 --- a/drivers/watchdog/stmp3xxx_wdt.c +++ b/drivers/watchdog/stmp3xxx_wdt.c | |||
@@ -272,18 +272,7 @@ static struct platform_driver platform_wdt_driver = { | |||
272 | .resume = stmp3xxx_wdt_resume, | 272 | .resume = stmp3xxx_wdt_resume, |
273 | }; | 273 | }; |
274 | 274 | ||
275 | static int __init stmp3xxx_wdt_init(void) | 275 | module_platform_driver(platform_wdt_driver); |
276 | { | ||
277 | return platform_driver_register(&platform_wdt_driver); | ||
278 | } | ||
279 | |||
280 | static void __exit stmp3xxx_wdt_exit(void) | ||
281 | { | ||
282 | return platform_driver_unregister(&platform_wdt_driver); | ||
283 | } | ||
284 | |||
285 | module_init(stmp3xxx_wdt_init); | ||
286 | module_exit(stmp3xxx_wdt_exit); | ||
287 | 276 | ||
288 | MODULE_DESCRIPTION("STMP3XXX Watchdog Driver"); | 277 | MODULE_DESCRIPTION("STMP3XXX Watchdog Driver"); |
289 | MODULE_LICENSE("GPL"); | 278 | MODULE_LICENSE("GPL"); |