summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2012-06-19 02:42:03 +0200
committerDavid S. Miller <davem@davemloft.net>2012-06-20 00:04:14 +0200
commit677a3d60fb3153f786a0d28fcf0287670e7bd3c2 (patch)
treec684c3222a8316d792bc1caed59fe6da87b5e73a
parentnet: qmi_wwan: shorten driver description (diff)
downloadlinux-677a3d60fb3153f786a0d28fcf0287670e7bd3c2.tar.xz
linux-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>
-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 f12ba3c2134c..f1e779135899 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");