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

Commit ea869099 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman
Browse files

staging: comedi: skel: use module_comedi_driver to simplify the code

Use the module_comedi_driver() macro to make the code simpler
by eliminating module_init and module_exit calls.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch

)

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3d568028
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -628,18 +628,7 @@ static void __exit driver_skel_cleanup_module(void)
module_init(driver_skel_init_module);
module_exit(driver_skel_cleanup_module);
#else
static int __init driver_skel_init_module(void)
{
	return comedi_driver_register(&driver_skel);
}

static void __exit driver_skel_cleanup_module(void)
{
	comedi_driver_unregister(&driver_skel);
}

module_init(driver_skel_init_module);
module_exit(driver_skel_cleanup_module);
module_comedi_driver(driver_skel);
#endif

MODULE_AUTHOR("Comedi http://www.comedi.org");