]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
net: qmi_wwan: use module_usb_driver macro
authorBjørn Mork <bjorn@mork.no>
Tue, 19 Jun 2012 00:42:03 +0000 (00:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jun 2012 22:04:14 +0000 (15:04 -0700)
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/qmi_wwan.c

index f12ba3c2134cba27773d13701485532066676b42..f1e7791358997bd05e891891c68f3392f304d24e 100644 (file)
@@ -593,17 +593,7 @@ static struct usb_driver qmi_wwan_driver = {
        .disable_hub_initiated_lpm = 1,
 };
 
-static int __init qmi_wwan_init(void)
-{
-       return usb_register(&qmi_wwan_driver);
-}
-module_init(qmi_wwan_init);
-
-static void __exit qmi_wwan_exit(void)
-{
-       usb_deregister(&qmi_wwan_driver);
-}
-module_exit(qmi_wwan_exit);
+module_usb_driver(qmi_wwan_driver);
 
 MODULE_AUTHOR("Bjørn Mork <bjorn@mork.no>");
 MODULE_DESCRIPTION("Qualcomm MSM Interface (QMI) WWAN driver");