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 8aa01149351a..5b682cc4c814 100644 --- a/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c +++ b/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c | |||
@@ -1808,26 +1808,7 @@ static struct usb_driver ttusb_driver = { | |||
1808 | .id_table = ttusb_table, | 1808 | .id_table = ttusb_table, |
1809 | }; | 1809 | }; |
1810 | 1810 | ||
1811 | static int __init ttusb_init(void) | 1811 | module_usb_driver(ttusb_driver); |
1812 | { | ||
1813 | int err; | ||
1814 | |||
1815 | if ((err = usb_register(&ttusb_driver)) < 0) { | ||
1816 | printk("%s: usb_register failed! Error number %d", | ||
1817 | __FILE__, err); | ||
1818 | return err; | ||
1819 | } | ||
1820 | |||
1821 | return 0; | ||
1822 | } | ||
1823 | |||
1824 | static void __exit ttusb_exit(void) | ||
1825 | { | ||
1826 | usb_deregister(&ttusb_driver); | ||
1827 | } | ||
1828 | |||
1829 | module_init(ttusb_init); | ||
1830 | module_exit(ttusb_exit); | ||
1831 | 1812 | ||
1832 | MODULE_AUTHOR("Holger Waechtler <holger@convergence.de>"); | 1813 | MODULE_AUTHOR("Holger Waechtler <holger@convergence.de>"); |
1833 | MODULE_DESCRIPTION("TTUSB DVB Driver"); | 1814 | MODULE_DESCRIPTION("TTUSB DVB Driver"); |