diff options
Diffstat (limited to 'drivers/nfc/pn533.c')
-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 7bcb1febef0d..bd023847efb2 100644 --- a/drivers/nfc/pn533.c +++ b/drivers/nfc/pn533.c | |||
@@ -1597,24 +1597,7 @@ static struct usb_driver pn533_driver = { | |||
1597 | .id_table = pn533_table, | 1597 | .id_table = pn533_table, |
1598 | }; | 1598 | }; |
1599 | 1599 | ||
1600 | static int __init pn533_init(void) | 1600 | module_usb_driver(pn533_driver); |
1601 | { | ||
1602 | int rc; | ||
1603 | |||
1604 | rc = usb_register(&pn533_driver); | ||
1605 | if (rc) | ||
1606 | err("usb_register failed. Error number %d", rc); | ||
1607 | |||
1608 | return rc; | ||
1609 | } | ||
1610 | |||
1611 | static void __exit pn533_exit(void) | ||
1612 | { | ||
1613 | usb_deregister(&pn533_driver); | ||
1614 | } | ||
1615 | |||
1616 | module_init(pn533_init); | ||
1617 | module_exit(pn533_exit); | ||
1618 | 1601 | ||
1619 | MODULE_AUTHOR("Lauro Ramos Venancio <lauro.venancio@openbossa.org>," | 1602 | MODULE_AUTHOR("Lauro Ramos Venancio <lauro.venancio@openbossa.org>," |
1620 | " Aloisio Almeida Jr <aloisio.almeida@openbossa.org>"); | 1603 | " Aloisio Almeida Jr <aloisio.almeida@openbossa.org>"); |