From: Bjørn Mork Date: Tue, 19 Jun 2012 00:42:03 +0000 (+0000) Subject: net: qmi_wwan: use module_usb_driver macro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=677a3d60fb3153f786a0d28fcf0287670e7bd3c2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net: qmi_wwan: use module_usb_driver macro Signed-off-by: Bjørn Mork Signed-off-by: David S. Miller --- 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 "); MODULE_DESCRIPTION("Qualcomm MSM Interface (QMI) WWAN driver");