diff options
Diffstat (limited to 'drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c')
-rw-r--r-- | drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c b/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c index 420bb42d5233..e90192fdde11 100644 --- a/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c +++ b/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c | |||
@@ -1794,26 +1794,7 @@ static struct usb_driver ttusb_driver = { | |||
1794 | .id_table = ttusb_table, | 1794 | .id_table = ttusb_table, |
1795 | }; | 1795 | }; |
1796 | 1796 | ||
1797 | static int __init ttusb_init(void) | 1797 | module_usb_driver(ttusb_driver); |
1798 | { | ||
1799 | int err; | ||
1800 | |||
1801 | if ((err = usb_register(&ttusb_driver)) < 0) { | ||
1802 | printk("%s: usb_register failed! Error number %d", | ||
1803 | __FILE__, err); | ||
1804 | return err; | ||
1805 | } | ||
1806 | |||
1807 | return 0; | ||
1808 | } | ||
1809 | |||
1810 | static void __exit ttusb_exit(void) | ||
1811 | { | ||
1812 | usb_deregister(&ttusb_driver); | ||
1813 | } | ||
1814 | |||
1815 | module_init(ttusb_init); | ||
1816 | module_exit(ttusb_exit); | ||
1817 | 1798 | ||
1818 | MODULE_AUTHOR("Holger Waechtler <holger@convergence.de>"); | 1799 | MODULE_AUTHOR("Holger Waechtler <holger@convergence.de>"); |
1819 | MODULE_DESCRIPTION("TTUSB DVB Driver"); | 1800 | MODULE_DESCRIPTION("TTUSB DVB Driver"); |