Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7a8c420 authored by William Breathitt Gray's avatar William Breathitt Gray Committed by Wim Van Sebroeck
Browse files

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: default avatarWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent efa859f7
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -992,19 +992,7 @@ static struct isa_driver pcwd_isa_driver = {
	},
};

static int __init pcwd_init_module(void)
{
	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_isa_driver(pcwd_isa_driver, PCWD_ISA_NR_CARDS);

MODULE_AUTHOR("Ken Hollis <kenji@bitgate.com>, "
		"Wim Van Sebroeck <wim@iguana.be>");