diff options
author | Peter Huewe <peterhuewe@gmx.de> | 2013-05-17 23:51:57 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-20 10:16:17 -0700 |
commit | e516658559170735b99fe0b3d2d880902d9f92ef (patch) | |
tree | ea5d3738a829c39e638f3c793a5a0da690e44308 /drivers/staging | |
parent | b9594b81a7ed25a36abc69e799013302c41287c3 (diff) |
staging/btmtk_usb: use module_usb_driver to register driver
Removing some boilerplate by using module_usb_driver instead of calling
register and unregister in the otherwise empty init/exit functions
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/btmtk_usb/btmtk_usb.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/staging/btmtk_usb/btmtk_usb.c b/drivers/staging/btmtk_usb/btmtk_usb.c index 6b01f6196bb9..772c49ed8871 100644 --- a/drivers/staging/btmtk_usb/btmtk_usb.c +++ b/drivers/staging/btmtk_usb/btmtk_usb.c @@ -1771,20 +1771,7 @@ static struct usb_driver btmtk_usb_driver = { .disable_hub_initiated_lpm = 1, }; -static int __init btmtk_usb_init(void) -{ - BT_INFO("btmtk usb driver ver %s", VERSION); - - return usb_register(&btmtk_usb_driver); -} - -static void __exit btmtk_usb_exit(void) -{ - usb_deregister(&btmtk_usb_driver); -} - -module_init(btmtk_usb_init); -module_exit(btmtk_usb_exit); +module_usb_driver(btmtk_usb_driver); MODULE_DESCRIPTION("Mediatek Bluetooth USB driver ver " VERSION); MODULE_VERSION(VERSION); |