Commit 23eedbc2 authored by Tobias Klauser's avatar Tobias Klauser Committed by David S. Miller

ch9200: Convert to use module_usb_driver

Converts the ch9200 driver to use the module_usb_driver() macro which
makes the code smaller and a bit simpler.
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Acked-by: default avatarMatthew Garrett <mjg59@srcf.ucam.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ae5f2fb1
...@@ -426,18 +426,7 @@ static struct usb_driver ch9200_driver = { ...@@ -426,18 +426,7 @@ static struct usb_driver ch9200_driver = {
.resume = usbnet_resume, .resume = usbnet_resume,
}; };
static int __init ch9200_init(void) module_usb_driver(ch9200_driver);
{
return usb_register(&ch9200_driver);
}
static void __exit ch9200_exit(void)
{
usb_deregister(&ch9200_driver);
}
module_init(ch9200_init);
module_exit(ch9200_exit);
MODULE_DESCRIPTION("QinHeng CH9200 USB Network device"); MODULE_DESCRIPTION("QinHeng CH9200 USB Network device");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment