wm831x_wdt.c (e0273728564a395a13cfed70e34da4f2613d2d44) | wm831x_wdt.c (216f3ad9aa5731024b9c96e63b676f9f65078dd5) |
---|---|
1/* 2 * Watchdog driver for the wm831x PMICs 3 * 4 * Copyright (C) 2009 Wolfson Microelectronics 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation --- 306 unchanged lines hidden (view full) --- 315static struct platform_driver wm831x_wdt_driver = { 316 .probe = wm831x_wdt_probe, 317 .remove = __devexit_p(wm831x_wdt_remove), 318 .driver = { 319 .name = "wm831x-watchdog", 320 }, 321}; 322 | 1/* 2 * Watchdog driver for the wm831x PMICs 3 * 4 * Copyright (C) 2009 Wolfson Microelectronics 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation --- 306 unchanged lines hidden (view full) --- 315static struct platform_driver wm831x_wdt_driver = { 316 .probe = wm831x_wdt_probe, 317 .remove = __devexit_p(wm831x_wdt_remove), 318 .driver = { 319 .name = "wm831x-watchdog", 320 }, 321}; 322 |
323static int __init wm831x_wdt_init(void) 324{ 325 return platform_driver_register(&wm831x_wdt_driver); 326} 327module_init(wm831x_wdt_init); | 323module_platform_driver(wm831x_wdt_driver); |
328 | 324 |
329static void __exit wm831x_wdt_exit(void) 330{ 331 platform_driver_unregister(&wm831x_wdt_driver); 332} 333module_exit(wm831x_wdt_exit); 334 | |
335MODULE_AUTHOR("Mark Brown"); 336MODULE_DESCRIPTION("WM831x Watchdog"); 337MODULE_LICENSE("GPL"); 338MODULE_ALIAS("platform:wm831x-watchdog"); | 325MODULE_AUTHOR("Mark Brown"); 326MODULE_DESCRIPTION("WM831x Watchdog"); 327MODULE_LICENSE("GPL"); 328MODULE_ALIAS("platform:wm831x-watchdog"); |