diff options
Diffstat (limited to 'drivers/media/video/cx231xx')
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-cards.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-cards.c b/drivers/media/video/cx231xx/cx231xx-cards.c index 627829f4d8c9..919ed77b32f2 100644 --- a/drivers/media/video/cx231xx/cx231xx-cards.c +++ b/drivers/media/video/cx231xx/cx231xx-cards.c | |||
@@ -1379,26 +1379,4 @@ static struct usb_driver cx231xx_usb_driver = { | |||
1379 | .id_table = cx231xx_id_table, | 1379 | .id_table = cx231xx_id_table, |
1380 | }; | 1380 | }; |
1381 | 1381 | ||
1382 | static int __init cx231xx_module_init(void) | 1382 | module_usb_driver(cx231xx_usb_driver); |
1383 | { | ||
1384 | int result; | ||
1385 | |||
1386 | printk(KERN_INFO DRIVER_NAME " v4l2 driver loaded.\n"); | ||
1387 | |||
1388 | /* register this driver with the USB subsystem */ | ||
1389 | result = usb_register(&cx231xx_usb_driver); | ||
1390 | if (result) | ||
1391 | cx231xx_err(DRIVER_NAME | ||
1392 | " usb_register failed. Error number %d.\n", result); | ||
1393 | |||
1394 | return result; | ||
1395 | } | ||
1396 | |||
1397 | static void __exit cx231xx_module_exit(void) | ||
1398 | { | ||
1399 | /* deregister this driver with the USB subsystem */ | ||
1400 | usb_deregister(&cx231xx_usb_driver); | ||
1401 | } | ||
1402 | |||
1403 | module_init(cx231xx_module_init); | ||
1404 | module_exit(cx231xx_module_exit); | ||