sp805_wdt.c (b675b3667f6729dcd1036a2a129b35445947f905) | sp805_wdt.c (9e5ed094c89e55fbf11d2e81d60be98eb12346c0) |
---|---|
1/* 2 * drivers/char/watchdog/sp805-wdt.c 3 * 4 * Watchdog driver for ARM SP805 watchdog module 5 * 6 * Copyright (C) 2010 ST Microelectronics 7 * Viresh Kumar<viresh.kumar@st.com> 8 * --- 356 unchanged lines hidden (view full) --- 365 .drv = { 366 .name = MODULE_NAME, 367 }, 368 .id_table = sp805_wdt_ids, 369 .probe = sp805_wdt_probe, 370 .remove = __devexit_p(sp805_wdt_remove), 371}; 372 | 1/* 2 * drivers/char/watchdog/sp805-wdt.c 3 * 4 * Watchdog driver for ARM SP805 watchdog module 5 * 6 * Copyright (C) 2010 ST Microelectronics 7 * Viresh Kumar<viresh.kumar@st.com> 8 * --- 356 unchanged lines hidden (view full) --- 365 .drv = { 366 .name = MODULE_NAME, 367 }, 368 .id_table = sp805_wdt_ids, 369 .probe = sp805_wdt_probe, 370 .remove = __devexit_p(sp805_wdt_remove), 371}; 372 |
373static int __init sp805_wdt_init(void) 374{ 375 return amba_driver_register(&sp805_wdt_driver); 376} 377module_init(sp805_wdt_init); | 373module_amba_driver(sp805_wdt_driver); |
378 | 374 |
379static void __exit sp805_wdt_exit(void) 380{ 381 amba_driver_unregister(&sp805_wdt_driver); 382} 383module_exit(sp805_wdt_exit); 384 | |
385module_param(nowayout, int, 0); 386MODULE_PARM_DESC(nowayout, 387 "Set to 1 to keep watchdog running after device release"); 388 389MODULE_AUTHOR("Viresh Kumar <viresh.kumar@st.com>"); 390MODULE_DESCRIPTION("ARM SP805 Watchdog Driver"); 391MODULE_LICENSE("GPL"); 392MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); | 375module_param(nowayout, int, 0); 376MODULE_PARM_DESC(nowayout, 377 "Set to 1 to keep watchdog running after device release"); 378 379MODULE_AUTHOR("Viresh Kumar <viresh.kumar@st.com>"); 380MODULE_DESCRIPTION("ARM SP805 Watchdog Driver"); 381MODULE_LICENSE("GPL"); 382MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); |