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

Commit f0a5fd4e authored by Wei Yongjun's avatar Wei Yongjun Committed by John W. Linville
Browse files

ar5523: use module_usb_driver to simplify the code

Use the module_usb_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 avatarJohn W. Linville <linville@tuxdriver.com>
parent 73e6991a
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -1789,18 +1789,7 @@ static struct usb_driver ar5523_driver = {
	.disconnect	= ar5523_disconnect,
};

static int __init ar5523_init(void)
{
	return usb_register(&ar5523_driver);
}

static void __exit ar5523_exit(void)
{
	usb_deregister(&ar5523_driver);
}
module_usb_driver(ar5523_driver);

MODULE_LICENSE("Dual BSD/GPL");
MODULE_FIRMWARE(AR5523_FIRMWARE_FILE);

module_init(ar5523_init);
module_exit(ar5523_exit);