diff options
Diffstat (limited to 'drivers/nfc')
-rw-r--r-- | drivers/nfc/pn533.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/drivers/nfc/pn533.c b/drivers/nfc/pn533.c index b8b6c2abbd4a..1a1500bc8452 100644 --- a/drivers/nfc/pn533.c +++ b/drivers/nfc/pn533.c | |||
@@ -1761,24 +1761,7 @@ static struct usb_driver pn533_driver = { | |||
1761 | .id_table = pn533_table, | 1761 | .id_table = pn533_table, |
1762 | }; | 1762 | }; |
1763 | 1763 | ||
1764 | static int __init pn533_init(void) | 1764 | module_usb_driver(pn533_driver); |
1765 | { | ||
1766 | int rc; | ||
1767 | |||
1768 | rc = usb_register(&pn533_driver); | ||
1769 | if (rc) | ||
1770 | err("usb_register failed. Error number %d", rc); | ||
1771 | |||
1772 | return rc; | ||
1773 | } | ||
1774 | |||
1775 | static void __exit pn533_exit(void) | ||
1776 | { | ||
1777 | usb_deregister(&pn533_driver); | ||
1778 | } | ||
1779 | |||
1780 | module_init(pn533_init); | ||
1781 | module_exit(pn533_exit); | ||
1782 | 1765 | ||
1783 | MODULE_AUTHOR("Lauro Ramos Venancio <lauro.venancio@openbossa.org>," | 1766 | MODULE_AUTHOR("Lauro Ramos Venancio <lauro.venancio@openbossa.org>," |
1784 | " Aloisio Almeida Jr <aloisio.almeida@openbossa.org>"); | 1767 | " Aloisio Almeida Jr <aloisio.almeida@openbossa.org>"); |