summaryrefslogtreecommitdiff
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2012-06-19 00:42:03 +0000
committerDavid S. Miller <davem@davemloft.net>2012-06-19 15:04:14 -0700
commit677a3d60fb3153f786a0d28fcf0287670e7bd3c2 (patch)
treec684c3222a8316d792bc1caed59fe6da87b5e73a /drivers/net/usb
parenta40345b5b4a09ff8539aaafeb2c612db6d0b4d1b (diff)
downloadlinux-3.10-677a3d60fb3153f786a0d28fcf0287670e7bd3c2.tar.gz
linux-3.10-677a3d60fb3153f786a0d28fcf0287670e7bd3c2.tar.bz2
linux-3.10-677a3d60fb3153f786a0d28fcf0287670e7bd3c2.zip
net: qmi_wwan: use module_usb_driver macro
Signed-off-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/qmi_wwan.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c
index f12ba3c2134..f1e77913589 100644
--- a/drivers/net/usb/qmi_wwan.c
+++ b/drivers/net/usb/qmi_wwan.c
@@ -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");