mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-22 05:16:38 +00:00
watchdog: pcwd: Utilize the module_isa_driver macro
This driver does not do anything special in module init/exit. This patch eliminates the module init/exit boilerplate code by utilizing the module_isa_driver macro. Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
parent
efa859f7d7
commit
b7a8c420f3
@ -992,19 +992,7 @@ static struct isa_driver pcwd_isa_driver = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init pcwd_init_module(void)
|
module_isa_driver(pcwd_isa_driver, PCWD_ISA_NR_CARDS);
|
||||||
{
|
|
||||||
return isa_register_driver(&pcwd_isa_driver, PCWD_ISA_NR_CARDS);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit pcwd_cleanup_module(void)
|
|
||||||
{
|
|
||||||
isa_unregister_driver(&pcwd_isa_driver);
|
|
||||||
pr_info("Watchdog Module Unloaded\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
module_init(pcwd_init_module);
|
|
||||||
module_exit(pcwd_cleanup_module);
|
|
||||||
|
|
||||||
MODULE_AUTHOR("Ken Hollis <kenji@bitgate.com>, "
|
MODULE_AUTHOR("Ken Hollis <kenji@bitgate.com>, "
|
||||||
"Wim Van Sebroeck <wim@iguana.be>");
|
"Wim Van Sebroeck <wim@iguana.be>");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user