diff options
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/ar7_wdt.c | 13 | ||||
-rw-r--r-- | drivers/watchdog/bcm63xx_wdt.c | 13 | ||||
-rw-r--r-- | drivers/watchdog/cpwd.c | 13 | ||||
-rw-r--r-- | drivers/watchdog/davinci_wdt.c | 13 | ||||
-rw-r--r-- | drivers/watchdog/dw_wdt.c | 12 | ||||
-rw-r--r-- | drivers/watchdog/jz4740_wdt.c | 13 | ||||
-rw-r--r-- | drivers/watchdog/max63xx_wdt.c | 13 | ||||
-rw-r--r-- | drivers/watchdog/mtx-1_wdt.c | 13 | ||||
-rw-r--r-- | drivers/watchdog/nuc900_wdt.c | 13 | ||||
-rw-r--r-- | drivers/watchdog/of_xilinx_wdt.c | 13 | ||||
-rw-r--r-- | drivers/watchdog/omap_wdt.c | 13 | ||||
-rw-r--r-- | drivers/watchdog/orion_wdt.c | 13 | ||||
-rw-r--r-- | drivers/watchdog/pnx4008_wdt.c | 13 | ||||
-rw-r--r-- | drivers/watchdog/rc32434_wdt.c | 13 | ||||
-rw-r--r-- | drivers/watchdog/rdc321x_wdt.c | 13 | ||||
-rw-r--r-- | drivers/watchdog/riowd.c | 13 | ||||
-rw-r--r-- | drivers/watchdog/stmp3xxx_wdt.c | 13 | ||||
-rw-r--r-- | drivers/watchdog/ts72xx_wdt.c | 12 | ||||
-rw-r--r-- | drivers/watchdog/twl4030_wdt.c | 12 |
19 files changed, 19 insertions, 225 deletions
diff --git a/drivers/watchdog/ar7_wdt.c b/drivers/watchdog/ar7_wdt.c index b9564c5ddab9..502773ad5acd 100644 --- a/drivers/watchdog/ar7_wdt.c +++ b/drivers/watchdog/ar7_wdt.c | |||
@@ -353,15 +353,4 @@ static struct platform_driver ar7_wdt_driver = { | |||
353 | }, | 353 | }, |
354 | }; | 354 | }; |
355 | 355 | ||
356 | static int __init ar7_wdt_init(void) | 356 | module_platform_driver(ar7_wdt_driver); |
357 | { | ||
358 | return platform_driver_register(&ar7_wdt_driver); | ||
359 | } | ||
360 | |||
361 | static void __exit ar7_wdt_cleanup(void) | ||
362 | { | ||
363 | platform_driver_unregister(&ar7_wdt_driver); | ||
364 | } | ||
365 | |||
366 | module_init(ar7_wdt_init); | ||
367 | module_exit(ar7_wdt_cleanup); | ||
diff --git a/drivers/watchdog/bcm63xx_wdt.c b/drivers/watchdog/bcm63xx_wdt.c index 5064e8317521..8dc7de641e26 100644 --- a/drivers/watchdog/bcm63xx_wdt.c +++ b/drivers/watchdog/bcm63xx_wdt.c | |||
@@ -311,18 +311,7 @@ static struct platform_driver bcm63xx_wdt = { | |||
311 | } | 311 | } |
312 | }; | 312 | }; |
313 | 313 | ||
314 | static int __init bcm63xx_wdt_init(void) | 314 | module_platform_driver(bcm63xx_wdt); |
315 | { | ||
316 | return platform_driver_register(&bcm63xx_wdt); | ||
317 | } | ||
318 | |||
319 | static void __exit bcm63xx_wdt_exit(void) | ||
320 | { | ||
321 | platform_driver_unregister(&bcm63xx_wdt); | ||
322 | } | ||
323 | |||
324 | module_init(bcm63xx_wdt_init); | ||
325 | module_exit(bcm63xx_wdt_exit); | ||
326 | 315 | ||
327 | MODULE_AUTHOR("Miguel Gaio <miguel.gaio@efixo.com>"); | 316 | MODULE_AUTHOR("Miguel Gaio <miguel.gaio@efixo.com>"); |
328 | MODULE_AUTHOR("Florian Fainelli <florian@openwrt.org>"); | 317 | MODULE_AUTHOR("Florian Fainelli <florian@openwrt.org>"); |
diff --git a/drivers/watchdog/cpwd.c b/drivers/watchdog/cpwd.c index 1e013e8457b7..1b793dfd868f 100644 --- a/drivers/watchdog/cpwd.c +++ b/drivers/watchdog/cpwd.c | |||
@@ -687,15 +687,4 @@ static struct platform_driver cpwd_driver = { | |||
687 | .remove = __devexit_p(cpwd_remove), | 687 | .remove = __devexit_p(cpwd_remove), |
688 | }; | 688 | }; |
689 | 689 | ||
690 | static int __init cpwd_init(void) | 690 | module_platform_driver(cpwd_driver); |
691 | { | ||
692 | return platform_driver_register(&cpwd_driver); | ||
693 | } | ||
694 | |||
695 | static void __exit cpwd_exit(void) | ||
696 | { | ||
697 | platform_driver_unregister(&cpwd_driver); | ||
698 | } | ||
699 | |||
700 | module_init(cpwd_init); | ||
701 | module_exit(cpwd_exit); | ||
diff --git a/drivers/watchdog/davinci_wdt.c b/drivers/watchdog/davinci_wdt.c index 51b5551b4e3f..c8c5c8032bcb 100644 --- a/drivers/watchdog/davinci_wdt.c +++ b/drivers/watchdog/davinci_wdt.c | |||
@@ -271,18 +271,7 @@ static struct platform_driver platform_wdt_driver = { | |||
271 | .remove = __devexit_p(davinci_wdt_remove), | 271 | .remove = __devexit_p(davinci_wdt_remove), |
272 | }; | 272 | }; |
273 | 273 | ||
274 | static int __init davinci_wdt_init(void) | 274 | module_platform_driver(platform_wdt_driver); |
275 | { | ||
276 | return platform_driver_register(&platform_wdt_driver); | ||
277 | } | ||
278 | |||
279 | static void __exit davinci_wdt_exit(void) | ||
280 | { | ||
281 | platform_driver_unregister(&platform_wdt_driver); | ||
282 | } | ||
283 | |||
284 | module_init(davinci_wdt_init); | ||
285 | module_exit(davinci_wdt_exit); | ||
286 | 275 | ||
287 | MODULE_AUTHOR("Texas Instruments"); | 276 | MODULE_AUTHOR("Texas Instruments"); |
288 | MODULE_DESCRIPTION("DaVinci Watchdog Driver"); | 277 | MODULE_DESCRIPTION("DaVinci Watchdog Driver"); |
diff --git a/drivers/watchdog/dw_wdt.c b/drivers/watchdog/dw_wdt.c index f10f8c0abba4..1b0e3dd81c1a 100644 --- a/drivers/watchdog/dw_wdt.c +++ b/drivers/watchdog/dw_wdt.c | |||
@@ -358,17 +358,7 @@ static struct platform_driver dw_wdt_driver = { | |||
358 | }, | 358 | }, |
359 | }; | 359 | }; |
360 | 360 | ||
361 | static int __init dw_wdt_watchdog_init(void) | 361 | module_platform_driver(dw_wdt_driver); |
362 | { | ||
363 | return platform_driver_register(&dw_wdt_driver); | ||
364 | } | ||
365 | module_init(dw_wdt_watchdog_init); | ||
366 | |||
367 | static void __exit dw_wdt_watchdog_exit(void) | ||
368 | { | ||
369 | platform_driver_unregister(&dw_wdt_driver); | ||
370 | } | ||
371 | module_exit(dw_wdt_watchdog_exit); | ||
372 | 362 | ||
373 | MODULE_AUTHOR("Jamie Iles"); | 363 | MODULE_AUTHOR("Jamie Iles"); |
374 | MODULE_DESCRIPTION("Synopsys DesignWare Watchdog Driver"); | 364 | MODULE_DESCRIPTION("Synopsys DesignWare Watchdog Driver"); |
diff --git a/drivers/watchdog/jz4740_wdt.c b/drivers/watchdog/jz4740_wdt.c index 684ba01fb540..17ef300bccc5 100644 --- a/drivers/watchdog/jz4740_wdt.c +++ b/drivers/watchdog/jz4740_wdt.c | |||
@@ -295,18 +295,7 @@ static struct platform_driver jz4740_wdt_driver = { | |||
295 | }, | 295 | }, |
296 | }; | 296 | }; |
297 | 297 | ||
298 | 298 | module_platform_driver(jz4740_wdt_driver); | |
299 | static int __init jz4740_wdt_init(void) | ||
300 | { | ||
301 | return platform_driver_register(&jz4740_wdt_driver); | ||
302 | } | ||
303 | module_init(jz4740_wdt_init); | ||
304 | |||
305 | static void __exit jz4740_wdt_exit(void) | ||
306 | { | ||
307 | platform_driver_unregister(&jz4740_wdt_driver); | ||
308 | } | ||
309 | module_exit(jz4740_wdt_exit); | ||
310 | 299 | ||
311 | MODULE_AUTHOR("Paul Cercueil <paul@crapouillou.net>"); | 300 | MODULE_AUTHOR("Paul Cercueil <paul@crapouillou.net>"); |
312 | MODULE_DESCRIPTION("jz4740 Watchdog Driver"); | 301 | MODULE_DESCRIPTION("jz4740 Watchdog Driver"); |
diff --git a/drivers/watchdog/max63xx_wdt.c b/drivers/watchdog/max63xx_wdt.c index 73ba2fd8e591..af63ecfbfa6f 100644 --- a/drivers/watchdog/max63xx_wdt.c +++ b/drivers/watchdog/max63xx_wdt.c | |||
@@ -364,18 +364,7 @@ static struct platform_driver max63xx_wdt_driver = { | |||
364 | }, | 364 | }, |
365 | }; | 365 | }; |
366 | 366 | ||
367 | static int __init max63xx_wdt_init(void) | 367 | module_platform_driver(max63xx_wdt_driver); |
368 | { | ||
369 | return platform_driver_register(&max63xx_wdt_driver); | ||
370 | } | ||
371 | |||
372 | static void __exit max63xx_wdt_exit(void) | ||
373 | { | ||
374 | platform_driver_unregister(&max63xx_wdt_driver); | ||
375 | } | ||
376 | |||
377 | module_init(max63xx_wdt_init); | ||
378 | module_exit(max63xx_wdt_exit); | ||
379 | 368 | ||
380 | MODULE_AUTHOR("Marc Zyngier <maz@misterjones.org>"); | 369 | MODULE_AUTHOR("Marc Zyngier <maz@misterjones.org>"); |
381 | MODULE_DESCRIPTION("max63xx Watchdog Driver"); | 370 | MODULE_DESCRIPTION("max63xx Watchdog Driver"); |
diff --git a/drivers/watchdog/mtx-1_wdt.c b/drivers/watchdog/mtx-1_wdt.c index ac37bb82392c..c29e31d99fe8 100644 --- a/drivers/watchdog/mtx-1_wdt.c +++ b/drivers/watchdog/mtx-1_wdt.c | |||
@@ -253,18 +253,7 @@ static struct platform_driver mtx1_wdt_driver = { | |||
253 | .driver.owner = THIS_MODULE, | 253 | .driver.owner = THIS_MODULE, |
254 | }; | 254 | }; |
255 | 255 | ||
256 | static int __init mtx1_wdt_init(void) | 256 | module_platform_driver(mtx1_wdt_driver); |
257 | { | ||
258 | return platform_driver_register(&mtx1_wdt_driver); | ||
259 | } | ||
260 | |||
261 | static void __exit mtx1_wdt_exit(void) | ||
262 | { | ||
263 | platform_driver_unregister(&mtx1_wdt_driver); | ||
264 | } | ||
265 | |||
266 | module_init(mtx1_wdt_init); | ||
267 | module_exit(mtx1_wdt_exit); | ||
268 | 257 | ||
269 | MODULE_AUTHOR("Michael Stickel, Florian Fainelli"); | 258 | MODULE_AUTHOR("Michael Stickel, Florian Fainelli"); |
270 | MODULE_DESCRIPTION("Driver for the MTX-1 watchdog"); | 259 | MODULE_DESCRIPTION("Driver for the MTX-1 watchdog"); |
diff --git a/drivers/watchdog/nuc900_wdt.c b/drivers/watchdog/nuc900_wdt.c index 6cee33d4b161..50359bad9177 100644 --- a/drivers/watchdog/nuc900_wdt.c +++ b/drivers/watchdog/nuc900_wdt.c | |||
@@ -334,18 +334,7 @@ static struct platform_driver nuc900wdt_driver = { | |||
334 | }, | 334 | }, |
335 | }; | 335 | }; |
336 | 336 | ||
337 | static int __init nuc900_wdt_init(void) | 337 | module_platform_driver(nuc900wdt_driver); |
338 | { | ||
339 | return platform_driver_register(&nuc900wdt_driver); | ||
340 | } | ||
341 | |||
342 | static void __exit nuc900_wdt_exit(void) | ||
343 | { | ||
344 | platform_driver_unregister(&nuc900wdt_driver); | ||
345 | } | ||
346 | |||
347 | module_init(nuc900_wdt_init); | ||
348 | module_exit(nuc900_wdt_exit); | ||
349 | 338 | ||
350 | MODULE_AUTHOR("Wan ZongShun <mcuos.com@gmail.com>"); | 339 | MODULE_AUTHOR("Wan ZongShun <mcuos.com@gmail.com>"); |
351 | MODULE_DESCRIPTION("Watchdog driver for NUC900"); | 340 | MODULE_DESCRIPTION("Watchdog driver for NUC900"); |
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"); |
diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index cd269b4574d1..324f525ea8d2 100644 --- a/drivers/watchdog/omap_wdt.c +++ b/drivers/watchdog/omap_wdt.c | |||
@@ -437,18 +437,7 @@ static struct platform_driver omap_wdt_driver = { | |||
437 | }, | 437 | }, |
438 | }; | 438 | }; |
439 | 439 | ||
440 | static int __init omap_wdt_init(void) | 440 | module_platform_driver(omap_wdt_driver); |
441 | { | ||
442 | return platform_driver_register(&omap_wdt_driver); | ||
443 | } | ||
444 | |||
445 | static void __exit omap_wdt_exit(void) | ||
446 | { | ||
447 | platform_driver_unregister(&omap_wdt_driver); | ||
448 | } | ||
449 | |||
450 | module_init(omap_wdt_init); | ||
451 | module_exit(omap_wdt_exit); | ||
452 | 441 | ||
453 | MODULE_AUTHOR("George G. Davis"); | 442 | MODULE_AUTHOR("George G. Davis"); |
454 | MODULE_LICENSE("GPL"); | 443 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c index 66bd97f7969a..4ad78f868515 100644 --- a/drivers/watchdog/orion_wdt.c +++ b/drivers/watchdog/orion_wdt.c | |||
@@ -294,18 +294,7 @@ static struct platform_driver orion_wdt_driver = { | |||
294 | }, | 294 | }, |
295 | }; | 295 | }; |
296 | 296 | ||
297 | static int __init orion_wdt_init(void) | 297 | module_platform_driver(orion_wdt_driver); |
298 | { | ||
299 | return platform_driver_register(&orion_wdt_driver); | ||
300 | } | ||
301 | |||
302 | static void __exit orion_wdt_exit(void) | ||
303 | { | ||
304 | platform_driver_unregister(&orion_wdt_driver); | ||
305 | } | ||
306 | |||
307 | module_init(orion_wdt_init); | ||
308 | module_exit(orion_wdt_exit); | ||
309 | 298 | ||
310 | MODULE_AUTHOR("Sylver Bruneau <sylver.bruneau@googlemail.com>"); | 299 | MODULE_AUTHOR("Sylver Bruneau <sylver.bruneau@googlemail.com>"); |
311 | MODULE_DESCRIPTION("Orion Processor Watchdog"); | 300 | MODULE_DESCRIPTION("Orion Processor Watchdog"); |
diff --git a/drivers/watchdog/pnx4008_wdt.c b/drivers/watchdog/pnx4008_wdt.c index 614933225560..bd143c9dd3e6 100644 --- a/drivers/watchdog/pnx4008_wdt.c +++ b/drivers/watchdog/pnx4008_wdt.c | |||
@@ -334,18 +334,7 @@ static struct platform_driver platform_wdt_driver = { | |||
334 | .remove = __devexit_p(pnx4008_wdt_remove), | 334 | .remove = __devexit_p(pnx4008_wdt_remove), |
335 | }; | 335 | }; |
336 | 336 | ||
337 | static int __init pnx4008_wdt_init(void) | 337 | module_platform_driver(platform_wdt_driver); |
338 | { | ||
339 | return platform_driver_register(&platform_wdt_driver); | ||
340 | } | ||
341 | |||
342 | static void __exit pnx4008_wdt_exit(void) | ||
343 | { | ||
344 | platform_driver_unregister(&platform_wdt_driver); | ||
345 | } | ||
346 | |||
347 | module_init(pnx4008_wdt_init); | ||
348 | module_exit(pnx4008_wdt_exit); | ||
349 | 338 | ||
350 | MODULE_AUTHOR("MontaVista Software, Inc. <source@mvista.com>"); | 339 | MODULE_AUTHOR("MontaVista Software, Inc. <source@mvista.com>"); |
351 | MODULE_DESCRIPTION("PNX4008 Watchdog Driver"); | 340 | MODULE_DESCRIPTION("PNX4008 Watchdog Driver"); |
diff --git a/drivers/watchdog/rc32434_wdt.c b/drivers/watchdog/rc32434_wdt.c index d4c29b5311a4..bf7bc8aa1c01 100644 --- a/drivers/watchdog/rc32434_wdt.c +++ b/drivers/watchdog/rc32434_wdt.c | |||
@@ -332,18 +332,7 @@ static struct platform_driver rc32434_wdt_driver = { | |||
332 | } | 332 | } |
333 | }; | 333 | }; |
334 | 334 | ||
335 | static int __init rc32434_wdt_init(void) | 335 | module_platform_driver(rc32434_wdt_driver); |
336 | { | ||
337 | return platform_driver_register(&rc32434_wdt_driver); | ||
338 | } | ||
339 | |||
340 | static void __exit rc32434_wdt_exit(void) | ||
341 | { | ||
342 | platform_driver_unregister(&rc32434_wdt_driver); | ||
343 | } | ||
344 | |||
345 | module_init(rc32434_wdt_init); | ||
346 | module_exit(rc32434_wdt_exit); | ||
347 | 336 | ||
348 | MODULE_AUTHOR("Ondrej Zajicek <santiago@crfreenet.org>," | 337 | MODULE_AUTHOR("Ondrej Zajicek <santiago@crfreenet.org>," |
349 | "Florian Fainelli <florian@openwrt.org>"); | 338 | "Florian Fainelli <florian@openwrt.org>"); |
diff --git a/drivers/watchdog/rdc321x_wdt.c b/drivers/watchdog/rdc321x_wdt.c index 428f8a1583e8..042ccc56ae26 100644 --- a/drivers/watchdog/rdc321x_wdt.c +++ b/drivers/watchdog/rdc321x_wdt.c | |||
@@ -293,18 +293,7 @@ static struct platform_driver rdc321x_wdt_driver = { | |||
293 | }, | 293 | }, |
294 | }; | 294 | }; |
295 | 295 | ||
296 | static int __init rdc321x_wdt_init(void) | 296 | module_platform_driver(rdc321x_wdt_driver); |
297 | { | ||
298 | return platform_driver_register(&rdc321x_wdt_driver); | ||
299 | } | ||
300 | |||
301 | static void __exit rdc321x_wdt_exit(void) | ||
302 | { | ||
303 | platform_driver_unregister(&rdc321x_wdt_driver); | ||
304 | } | ||
305 | |||
306 | module_init(rdc321x_wdt_init); | ||
307 | module_exit(rdc321x_wdt_exit); | ||
308 | 297 | ||
309 | MODULE_AUTHOR("Florian Fainelli <florian@openwrt.org>"); | 298 | MODULE_AUTHOR("Florian Fainelli <florian@openwrt.org>"); |
310 | MODULE_DESCRIPTION("RDC321x watchdog driver"); | 299 | MODULE_DESCRIPTION("RDC321x watchdog driver"); |
diff --git a/drivers/watchdog/riowd.c b/drivers/watchdog/riowd.c index 109b533896b7..c7e17ceafa6a 100644 --- a/drivers/watchdog/riowd.c +++ b/drivers/watchdog/riowd.c | |||
@@ -247,15 +247,4 @@ static struct platform_driver riowd_driver = { | |||
247 | .remove = __devexit_p(riowd_remove), | 247 | .remove = __devexit_p(riowd_remove), |
248 | }; | 248 | }; |
249 | 249 | ||
250 | static int __init riowd_init(void) | 250 | module_platform_driver(riowd_driver); |
251 | { | ||
252 | return platform_driver_register(&riowd_driver); | ||
253 | } | ||
254 | |||
255 | static void __exit riowd_exit(void) | ||
256 | { | ||
257 | platform_driver_unregister(&riowd_driver); | ||
258 | } | ||
259 | |||
260 | module_init(riowd_init); | ||
261 | module_exit(riowd_exit); | ||
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"); |
diff --git a/drivers/watchdog/ts72xx_wdt.c b/drivers/watchdog/ts72xx_wdt.c index 5a90a4a871dd..1490293dc7da 100644 --- a/drivers/watchdog/ts72xx_wdt.c +++ b/drivers/watchdog/ts72xx_wdt.c | |||
@@ -506,17 +506,7 @@ static struct platform_driver ts72xx_wdt_driver = { | |||
506 | }, | 506 | }, |
507 | }; | 507 | }; |
508 | 508 | ||
509 | static __init int ts72xx_wdt_init(void) | 509 | module_platform_driver(ts72xx_wdt_driver); |
510 | { | ||
511 | return platform_driver_register(&ts72xx_wdt_driver); | ||
512 | } | ||
513 | module_init(ts72xx_wdt_init); | ||
514 | |||
515 | static __exit void ts72xx_wdt_exit(void) | ||
516 | { | ||
517 | platform_driver_unregister(&ts72xx_wdt_driver); | ||
518 | } | ||
519 | module_exit(ts72xx_wdt_exit); | ||
520 | 510 | ||
521 | MODULE_AUTHOR("Mika Westerberg <mika.westerberg@iki.fi>"); | 511 | MODULE_AUTHOR("Mika Westerberg <mika.westerberg@iki.fi>"); |
522 | MODULE_DESCRIPTION("TS-72xx SBC Watchdog"); | 512 | MODULE_DESCRIPTION("TS-72xx SBC Watchdog"); |
diff --git a/drivers/watchdog/twl4030_wdt.c b/drivers/watchdog/twl4030_wdt.c index b5045ca7e61c..0764c6239b98 100644 --- a/drivers/watchdog/twl4030_wdt.c +++ b/drivers/watchdog/twl4030_wdt.c | |||
@@ -256,17 +256,7 @@ static struct platform_driver twl4030_wdt_driver = { | |||
256 | }, | 256 | }, |
257 | }; | 257 | }; |
258 | 258 | ||
259 | static int __devinit twl4030_wdt_init(void) | 259 | module_platform_driver(twl4030_wdt_driver); |
260 | { | ||
261 | return platform_driver_register(&twl4030_wdt_driver); | ||
262 | } | ||
263 | module_init(twl4030_wdt_init); | ||
264 | |||
265 | static void __devexit twl4030_wdt_exit(void) | ||
266 | { | ||
267 | platform_driver_unregister(&twl4030_wdt_driver); | ||
268 | } | ||
269 | module_exit(twl4030_wdt_exit); | ||
270 | 260 | ||
271 | MODULE_AUTHOR("Nokia Corporation"); | 261 | MODULE_AUTHOR("Nokia Corporation"); |
272 | MODULE_LICENSE("GPL"); | 262 | MODULE_LICENSE("GPL"); |