diff options
Diffstat (limited to 'drivers/media')
147 files changed, 207 insertions, 1768 deletions
diff --git a/drivers/media/dvb/b2c2/flexcop-usb.c b/drivers/media/dvb/b2c2/flexcop-usb.c index bedcfb671624..26c666dd3514 100644 --- a/drivers/media/dvb/b2c2/flexcop-usb.c +++ b/drivers/media/dvb/b2c2/flexcop-usb.c | |||
@@ -583,25 +583,7 @@ static struct usb_driver flexcop_usb_driver = { | |||
583 | .id_table = flexcop_usb_table, | 583 | .id_table = flexcop_usb_table, |
584 | }; | 584 | }; |
585 | 585 | ||
586 | /* module stuff */ | 586 | module_usb_driver(flexcop_usb_driver); |
587 | static int __init flexcop_usb_module_init(void) | ||
588 | { | ||
589 | int result; | ||
590 | if ((result = usb_register(&flexcop_usb_driver))) { | ||
591 | err("usb_register failed. (%d)", result); | ||
592 | return result; | ||
593 | } | ||
594 | return 0; | ||
595 | } | ||
596 | |||
597 | static void __exit flexcop_usb_module_exit(void) | ||
598 | { | ||
599 | /* deregister this driver from the USB subsystem */ | ||
600 | usb_deregister(&flexcop_usb_driver); | ||
601 | } | ||
602 | |||
603 | module_init(flexcop_usb_module_init); | ||
604 | module_exit(flexcop_usb_module_exit); | ||
605 | 587 | ||
606 | MODULE_AUTHOR(DRIVER_AUTHOR); | 588 | MODULE_AUTHOR(DRIVER_AUTHOR); |
607 | MODULE_DESCRIPTION(DRIVER_NAME); | 589 | MODULE_DESCRIPTION(DRIVER_NAME); |
diff --git a/drivers/media/dvb/ddbridge/ddbridge-core.c b/drivers/media/dvb/ddbridge/ddbridge-core.c index 2f31648bba90..ce4f85849e7b 100644 --- a/drivers/media/dvb/ddbridge/ddbridge-core.c +++ b/drivers/media/dvb/ddbridge/ddbridge-core.c | |||
@@ -1480,7 +1480,7 @@ static const struct file_operations ddb_fops = { | |||
1480 | .open = ddb_open, | 1480 | .open = ddb_open, |
1481 | }; | 1481 | }; |
1482 | 1482 | ||
1483 | static char *ddb_devnode(struct device *device, mode_t *mode) | 1483 | static char *ddb_devnode(struct device *device, umode_t *mode) |
1484 | { | 1484 | { |
1485 | struct ddb *dev = dev_get_drvdata(device); | 1485 | struct ddb *dev = dev_get_drvdata(device); |
1486 | 1486 | ||
diff --git a/drivers/media/dvb/dvb-core/dvbdev.c b/drivers/media/dvb/dvb-core/dvbdev.c index f73287775953..00a67326c193 100644 --- a/drivers/media/dvb/dvb-core/dvbdev.c +++ b/drivers/media/dvb/dvb-core/dvbdev.c | |||
@@ -450,7 +450,7 @@ static int dvb_uevent(struct device *dev, struct kobj_uevent_env *env) | |||
450 | return 0; | 450 | return 0; |
451 | } | 451 | } |
452 | 452 | ||
453 | static char *dvb_devnode(struct device *dev, mode_t *mode) | 453 | static char *dvb_devnode(struct device *dev, umode_t *mode) |
454 | { | 454 | { |
455 | struct dvb_device *dvbdev = dev_get_drvdata(dev); | 455 | struct dvb_device *dvbdev = dev_get_drvdata(dev); |
456 | 456 | ||
diff --git a/drivers/media/dvb/dvb-usb/a800.c b/drivers/media/dvb/dvb-usb/a800.c index 2aef3c89e9fa..8d7fef84afd8 100644 --- a/drivers/media/dvb/dvb-usb/a800.c +++ b/drivers/media/dvb/dvb-usb/a800.c | |||
@@ -183,26 +183,7 @@ static struct usb_driver a800_driver = { | |||
183 | .id_table = a800_table, | 183 | .id_table = a800_table, |
184 | }; | 184 | }; |
185 | 185 | ||
186 | /* module stuff */ | 186 | module_usb_driver(a800_driver); |
187 | static int __init a800_module_init(void) | ||
188 | { | ||
189 | int result; | ||
190 | if ((result = usb_register(&a800_driver))) { | ||
191 | err("usb_register failed. Error number %d",result); | ||
192 | return result; | ||
193 | } | ||
194 | |||
195 | return 0; | ||
196 | } | ||
197 | |||
198 | static void __exit a800_module_exit(void) | ||
199 | { | ||
200 | /* deregister this driver from the USB subsystem */ | ||
201 | usb_deregister(&a800_driver); | ||
202 | } | ||
203 | |||
204 | module_init (a800_module_init); | ||
205 | module_exit (a800_module_exit); | ||
206 | 187 | ||
207 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); | 188 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); |
208 | MODULE_DESCRIPTION("AVerMedia AverTV DVB-T USB 2.0 (A800)"); | 189 | MODULE_DESCRIPTION("AVerMedia AverTV DVB-T USB 2.0 (A800)"); |
diff --git a/drivers/media/dvb/dvb-usb/af9005.c b/drivers/media/dvb/dvb-usb/af9005.c index 5d5e32f4e99d..af176b6ce738 100644 --- a/drivers/media/dvb/dvb-usb/af9005.c +++ b/drivers/media/dvb/dvb-usb/af9005.c | |||
@@ -30,7 +30,7 @@ MODULE_PARM_DESC(debug, | |||
30 | "set debugging level (1=info,xfer=2,rc=4,reg=8,i2c=16,fw=32 (or-able))." | 30 | "set debugging level (1=info,xfer=2,rc=4,reg=8,i2c=16,fw=32 (or-able))." |
31 | DVB_USB_DEBUG_STATUS); | 31 | DVB_USB_DEBUG_STATUS); |
32 | /* enable obnoxious led */ | 32 | /* enable obnoxious led */ |
33 | int dvb_usb_af9005_led = 1; | 33 | bool dvb_usb_af9005_led = 1; |
34 | module_param_named(led, dvb_usb_af9005_led, bool, 0644); | 34 | module_param_named(led, dvb_usb_af9005_led, bool, 0644); |
35 | MODULE_PARM_DESC(led, "enable led (default: 1)."); | 35 | MODULE_PARM_DESC(led, "enable led (default: 1)."); |
36 | 36 | ||
diff --git a/drivers/media/dvb/dvb-usb/af9005.h b/drivers/media/dvb/dvb-usb/af9005.h index c71c77bd7f4b..6a2bf3de8456 100644 --- a/drivers/media/dvb/dvb-usb/af9005.h +++ b/drivers/media/dvb/dvb-usb/af9005.h | |||
@@ -35,7 +35,7 @@ extern int dvb_usb_af9005_debug; | |||
35 | #define deb_i2c(args...) dprintk(dvb_usb_af9005_debug,0x10,args) | 35 | #define deb_i2c(args...) dprintk(dvb_usb_af9005_debug,0x10,args) |
36 | #define deb_fw(args...) dprintk(dvb_usb_af9005_debug,0x20,args) | 36 | #define deb_fw(args...) dprintk(dvb_usb_af9005_debug,0x20,args) |
37 | 37 | ||
38 | extern int dvb_usb_af9005_led; | 38 | extern bool dvb_usb_af9005_led; |
39 | 39 | ||
40 | /* firmware */ | 40 | /* firmware */ |
41 | #define FW_BULKOUT_SIZE 250 | 41 | #define FW_BULKOUT_SIZE 250 |
diff --git a/drivers/media/dvb/dvb-usb/af9015.c b/drivers/media/dvb/dvb-usb/af9015.c index e755d7637c22..282a43d648df 100644 --- a/drivers/media/dvb/dvb-usb/af9015.c +++ b/drivers/media/dvb/dvb-usb/af9015.c | |||
@@ -1967,25 +1967,7 @@ static struct usb_driver af9015_usb_driver = { | |||
1967 | .id_table = af9015_usb_table, | 1967 | .id_table = af9015_usb_table, |
1968 | }; | 1968 | }; |
1969 | 1969 | ||
1970 | /* module stuff */ | 1970 | module_usb_driver(af9015_usb_driver); |
1971 | static int __init af9015_usb_module_init(void) | ||
1972 | { | ||
1973 | int ret; | ||
1974 | ret = usb_register(&af9015_usb_driver); | ||
1975 | if (ret) | ||
1976 | err("module init failed:%d", ret); | ||
1977 | |||
1978 | return ret; | ||
1979 | } | ||
1980 | |||
1981 | static void __exit af9015_usb_module_exit(void) | ||
1982 | { | ||
1983 | /* deregister this driver from the USB subsystem */ | ||
1984 | usb_deregister(&af9015_usb_driver); | ||
1985 | } | ||
1986 | |||
1987 | module_init(af9015_usb_module_init); | ||
1988 | module_exit(af9015_usb_module_exit); | ||
1989 | 1971 | ||
1990 | MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); | 1972 | MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); |
1991 | MODULE_DESCRIPTION("Driver for Afatech AF9015 DVB-T"); | 1973 | MODULE_DESCRIPTION("Driver for Afatech AF9015 DVB-T"); |
diff --git a/drivers/media/dvb/dvb-usb/anysee.c b/drivers/media/dvb/dvb-usb/anysee.c index fdee856acab0..cf0c318d6989 100644 --- a/drivers/media/dvb/dvb-usb/anysee.c +++ b/drivers/media/dvb/dvb-usb/anysee.c | |||
@@ -1373,26 +1373,7 @@ static struct usb_driver anysee_driver = { | |||
1373 | .id_table = anysee_table, | 1373 | .id_table = anysee_table, |
1374 | }; | 1374 | }; |
1375 | 1375 | ||
1376 | /* module stuff */ | 1376 | module_usb_driver(anysee_driver); |
1377 | static int __init anysee_module_init(void) | ||
1378 | { | ||
1379 | int ret; | ||
1380 | |||
1381 | ret = usb_register(&anysee_driver); | ||
1382 | if (ret) | ||
1383 | err("%s: usb_register failed. Error number %d", __func__, ret); | ||
1384 | |||
1385 | return ret; | ||
1386 | } | ||
1387 | |||
1388 | static void __exit anysee_module_exit(void) | ||
1389 | { | ||
1390 | /* deregister this driver from the USB subsystem */ | ||
1391 | usb_deregister(&anysee_driver); | ||
1392 | } | ||
1393 | |||
1394 | module_init(anysee_module_init); | ||
1395 | module_exit(anysee_module_exit); | ||
1396 | 1377 | ||
1397 | MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); | 1378 | MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); |
1398 | MODULE_DESCRIPTION("Driver Anysee E30 DVB-C & DVB-T USB2.0"); | 1379 | MODULE_DESCRIPTION("Driver Anysee E30 DVB-C & DVB-T USB2.0"); |
diff --git a/drivers/media/dvb/dvb-usb/au6610.c b/drivers/media/dvb/dvb-usb/au6610.c index b77994967b9b..16210c060302 100644 --- a/drivers/media/dvb/dvb-usb/au6610.c +++ b/drivers/media/dvb/dvb-usb/au6610.c | |||
@@ -244,26 +244,7 @@ static struct usb_driver au6610_driver = { | |||
244 | .id_table = au6610_table, | 244 | .id_table = au6610_table, |
245 | }; | 245 | }; |
246 | 246 | ||
247 | /* module stuff */ | 247 | module_usb_driver(au6610_driver); |
248 | static int __init au6610_module_init(void) | ||
249 | { | ||
250 | int ret; | ||
251 | |||
252 | ret = usb_register(&au6610_driver); | ||
253 | if (ret) | ||
254 | err("usb_register failed. Error number %d", ret); | ||
255 | |||
256 | return ret; | ||
257 | } | ||
258 | |||
259 | static void __exit au6610_module_exit(void) | ||
260 | { | ||
261 | /* deregister this driver from the USB subsystem */ | ||
262 | usb_deregister(&au6610_driver); | ||
263 | } | ||
264 | |||
265 | module_init(au6610_module_init); | ||
266 | module_exit(au6610_module_exit); | ||
267 | 248 | ||
268 | MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); | 249 | MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); |
269 | MODULE_DESCRIPTION("Driver for Alcor Micro AU6610 DVB-T USB2.0"); | 250 | MODULE_DESCRIPTION("Driver for Alcor Micro AU6610 DVB-T USB2.0"); |
diff --git a/drivers/media/dvb/dvb-usb/az6027.c b/drivers/media/dvb/dvb-usb/az6027.c index bf67b4dfd82b..5e45ae605427 100644 --- a/drivers/media/dvb/dvb-usb/az6027.c +++ b/drivers/media/dvb/dvb-usb/az6027.c | |||
@@ -1174,28 +1174,7 @@ static struct usb_driver az6027_usb_driver = { | |||
1174 | .id_table = az6027_usb_table, | 1174 | .id_table = az6027_usb_table, |
1175 | }; | 1175 | }; |
1176 | 1176 | ||
1177 | /* module stuff */ | 1177 | module_usb_driver(az6027_usb_driver); |
1178 | static int __init az6027_usb_module_init(void) | ||
1179 | { | ||
1180 | int result; | ||
1181 | |||
1182 | result = usb_register(&az6027_usb_driver); | ||
1183 | if (result) { | ||
1184 | err("usb_register failed. (%d)", result); | ||
1185 | return result; | ||
1186 | } | ||
1187 | |||
1188 | return 0; | ||
1189 | } | ||
1190 | |||
1191 | static void __exit az6027_usb_module_exit(void) | ||
1192 | { | ||
1193 | /* deregister this driver from the USB subsystem */ | ||
1194 | usb_deregister(&az6027_usb_driver); | ||
1195 | } | ||
1196 | |||
1197 | module_init(az6027_usb_module_init); | ||
1198 | module_exit(az6027_usb_module_exit); | ||
1199 | 1178 | ||
1200 | MODULE_AUTHOR("Adams Xu <Adams.xu@azwave.com.cn>"); | 1179 | MODULE_AUTHOR("Adams Xu <Adams.xu@azwave.com.cn>"); |
1201 | MODULE_DESCRIPTION("Driver for AZUREWAVE DVB-S/S2 USB2.0 (AZ6027)"); | 1180 | MODULE_DESCRIPTION("Driver for AZUREWAVE DVB-S/S2 USB2.0 (AZ6027)"); |
diff --git a/drivers/media/dvb/dvb-usb/ce6230.c b/drivers/media/dvb/dvb-usb/ce6230.c index 57afb5a9157e..fa637255729c 100644 --- a/drivers/media/dvb/dvb-usb/ce6230.c +++ b/drivers/media/dvb/dvb-usb/ce6230.c | |||
@@ -317,27 +317,7 @@ static struct usb_driver ce6230_driver = { | |||
317 | .id_table = ce6230_table, | 317 | .id_table = ce6230_table, |
318 | }; | 318 | }; |
319 | 319 | ||
320 | /* module stuff */ | 320 | module_usb_driver(ce6230_driver); |
321 | static int __init ce6230_module_init(void) | ||
322 | { | ||
323 | int ret; | ||
324 | deb_info("%s:\n", __func__); | ||
325 | ret = usb_register(&ce6230_driver); | ||
326 | if (ret) | ||
327 | err("usb_register failed with error:%d", ret); | ||
328 | |||
329 | return ret; | ||
330 | } | ||
331 | |||
332 | static void __exit ce6230_module_exit(void) | ||
333 | { | ||
334 | deb_info("%s:\n", __func__); | ||
335 | /* deregister this driver from the USB subsystem */ | ||
336 | usb_deregister(&ce6230_driver); | ||
337 | } | ||
338 | |||
339 | module_init(ce6230_module_init); | ||
340 | module_exit(ce6230_module_exit); | ||
341 | 321 | ||
342 | MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); | 322 | MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); |
343 | MODULE_DESCRIPTION("Driver for Intel CE6230 DVB-T USB2.0"); | 323 | MODULE_DESCRIPTION("Driver for Intel CE6230 DVB-T USB2.0"); |
diff --git a/drivers/media/dvb/dvb-usb/cinergyT2-core.c b/drivers/media/dvb/dvb-usb/cinergyT2-core.c index f9d905002ec9..0a98548ecd17 100644 --- a/drivers/media/dvb/dvb-usb/cinergyT2-core.c +++ b/drivers/media/dvb/dvb-usb/cinergyT2-core.c | |||
@@ -247,25 +247,7 @@ static struct usb_driver cinergyt2_driver = { | |||
247 | .id_table = cinergyt2_usb_table | 247 | .id_table = cinergyt2_usb_table |
248 | }; | 248 | }; |
249 | 249 | ||
250 | static int __init cinergyt2_usb_init(void) | 250 | module_usb_driver(cinergyt2_driver); |
251 | { | ||
252 | int err; | ||
253 | |||
254 | err = usb_register(&cinergyt2_driver); | ||
255 | if (err) { | ||
256 | err("usb_register() failed! (err %i)\n", err); | ||
257 | return err; | ||
258 | } | ||
259 | return 0; | ||
260 | } | ||
261 | |||
262 | static void __exit cinergyt2_usb_exit(void) | ||
263 | { | ||
264 | usb_deregister(&cinergyt2_driver); | ||
265 | } | ||
266 | |||
267 | module_init(cinergyt2_usb_init); | ||
268 | module_exit(cinergyt2_usb_exit); | ||
269 | 251 | ||
270 | MODULE_DESCRIPTION("Terratec Cinergy T2 DVB-T driver"); | 252 | MODULE_DESCRIPTION("Terratec Cinergy T2 DVB-T driver"); |
271 | MODULE_LICENSE("GPL"); | 253 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/media/dvb/dvb-usb/cxusb.c b/drivers/media/dvb/dvb-usb/cxusb.c index e8e5a74fa5c7..3940bb0f9ef6 100644 --- a/drivers/media/dvb/dvb-usb/cxusb.c +++ b/drivers/media/dvb/dvb-usb/cxusb.c | |||
@@ -2033,26 +2033,7 @@ static struct usb_driver cxusb_driver = { | |||
2033 | .id_table = cxusb_table, | 2033 | .id_table = cxusb_table, |
2034 | }; | 2034 | }; |
2035 | 2035 | ||
2036 | /* module stuff */ | 2036 | module_usb_driver(cxusb_driver); |
2037 | static int __init cxusb_module_init(void) | ||
2038 | { | ||
2039 | int result; | ||
2040 | if ((result = usb_register(&cxusb_driver))) { | ||
2041 | err("usb_register failed. Error number %d",result); | ||
2042 | return result; | ||
2043 | } | ||
2044 | |||
2045 | return 0; | ||
2046 | } | ||
2047 | |||
2048 | static void __exit cxusb_module_exit(void) | ||
2049 | { | ||
2050 | /* deregister this driver from the USB subsystem */ | ||
2051 | usb_deregister(&cxusb_driver); | ||
2052 | } | ||
2053 | |||
2054 | module_init (cxusb_module_init); | ||
2055 | module_exit (cxusb_module_exit); | ||
2056 | 2037 | ||
2057 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); | 2038 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); |
2058 | MODULE_AUTHOR("Michael Krufky <mkrufky@linuxtv.org>"); | 2039 | MODULE_AUTHOR("Michael Krufky <mkrufky@linuxtv.org>"); |
diff --git a/drivers/media/dvb/dvb-usb/dib0700_core.c b/drivers/media/dvb/dvb-usb/dib0700_core.c index 2d259ca34b05..070e82aa53f5 100644 --- a/drivers/media/dvb/dvb-usb/dib0700_core.c +++ b/drivers/media/dvb/dvb-usb/dib0700_core.c | |||
@@ -832,27 +832,7 @@ static struct usb_driver dib0700_driver = { | |||
832 | .id_table = dib0700_usb_id_table, | 832 | .id_table = dib0700_usb_id_table, |
833 | }; | 833 | }; |
834 | 834 | ||
835 | /* module stuff */ | 835 | module_usb_driver(dib0700_driver); |
836 | static int __init dib0700_module_init(void) | ||
837 | { | ||
838 | int result; | ||
839 | info("loaded with support for %d different device-types", dib0700_device_count); | ||
840 | if ((result = usb_register(&dib0700_driver))) { | ||
841 | err("usb_register failed. Error number %d",result); | ||
842 | return result; | ||
843 | } | ||
844 | |||
845 | return 0; | ||
846 | } | ||
847 | |||
848 | static void __exit dib0700_module_exit(void) | ||
849 | { | ||
850 | /* deregister this driver from the USB subsystem */ | ||
851 | usb_deregister(&dib0700_driver); | ||
852 | } | ||
853 | |||
854 | module_init (dib0700_module_init); | ||
855 | module_exit (dib0700_module_exit); | ||
856 | 836 | ||
857 | MODULE_FIRMWARE("dvb-usb-dib0700-1.20.fw"); | 837 | MODULE_FIRMWARE("dvb-usb-dib0700-1.20.fw"); |
858 | MODULE_AUTHOR("Patrick Boettcher <pboettcher@dibcom.fr>"); | 838 | MODULE_AUTHOR("Patrick Boettcher <pboettcher@dibcom.fr>"); |
diff --git a/drivers/media/dvb/dvb-usb/dibusb-mb.c b/drivers/media/dvb/dvb-usb/dibusb-mb.c index 7270791f8340..a4ac37e0e98b 100644 --- a/drivers/media/dvb/dvb-usb/dibusb-mb.c +++ b/drivers/media/dvb/dvb-usb/dibusb-mb.c | |||
@@ -463,26 +463,7 @@ static struct usb_driver dibusb_driver = { | |||
463 | .id_table = dibusb_dib3000mb_table, | 463 | .id_table = dibusb_dib3000mb_table, |
464 | }; | 464 | }; |
465 | 465 | ||
466 | /* module stuff */ | 466 | module_usb_driver(dibusb_driver); |
467 | static int __init dibusb_module_init(void) | ||
468 | { | ||
469 | int result; | ||
470 | if ((result = usb_register(&dibusb_driver))) { | ||
471 | err("usb_register failed. Error number %d",result); | ||
472 | return result; | ||
473 | } | ||
474 | |||
475 | return 0; | ||
476 | } | ||
477 | |||
478 | static void __exit dibusb_module_exit(void) | ||
479 | { | ||
480 | /* deregister this driver from the USB subsystem */ | ||
481 | usb_deregister(&dibusb_driver); | ||
482 | } | ||
483 | |||
484 | module_init (dibusb_module_init); | ||
485 | module_exit (dibusb_module_exit); | ||
486 | 467 | ||
487 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); | 468 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); |
488 | MODULE_DESCRIPTION("Driver for DiBcom USB DVB-T devices (DiB3000M-B based)"); | 469 | MODULE_DESCRIPTION("Driver for DiBcom USB DVB-T devices (DiB3000M-B based)"); |
diff --git a/drivers/media/dvb/dvb-usb/dibusb-mc.c b/drivers/media/dvb/dvb-usb/dibusb-mc.c index 9c165e2569d4..9d1a59d09c52 100644 --- a/drivers/media/dvb/dvb-usb/dibusb-mc.c +++ b/drivers/media/dvb/dvb-usb/dibusb-mc.c | |||
@@ -141,26 +141,7 @@ static struct usb_driver dibusb_mc_driver = { | |||
141 | .id_table = dibusb_dib3000mc_table, | 141 | .id_table = dibusb_dib3000mc_table, |
142 | }; | 142 | }; |
143 | 143 | ||
144 | /* module stuff */ | 144 | module_usb_driver(dibusb_mc_driver); |
145 | static int __init dibusb_mc_module_init(void) | ||
146 | { | ||
147 | int result; | ||
148 | if ((result = usb_register(&dibusb_mc_driver))) { | ||
149 | err("usb_register failed. Error number %d",result); | ||
150 | return result; | ||
151 | } | ||
152 | |||
153 | return 0; | ||
154 | } | ||
155 | |||
156 | static void __exit dibusb_mc_module_exit(void) | ||
157 | { | ||
158 | /* deregister this driver from the USB subsystem */ | ||
159 | usb_deregister(&dibusb_mc_driver); | ||
160 | } | ||
161 | |||
162 | module_init (dibusb_mc_module_init); | ||
163 | module_exit (dibusb_mc_module_exit); | ||
164 | 145 | ||
165 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); | 146 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); |
166 | MODULE_DESCRIPTION("Driver for DiBcom USB2.0 DVB-T (DiB3000M-C/P based) devices"); | 147 | MODULE_DESCRIPTION("Driver for DiBcom USB2.0 DVB-T (DiB3000M-C/P based) devices"); |
diff --git a/drivers/media/dvb/dvb-usb/digitv.c b/drivers/media/dvb/dvb-usb/digitv.c index 00a446deaa76..ff34419a4c88 100644 --- a/drivers/media/dvb/dvb-usb/digitv.c +++ b/drivers/media/dvb/dvb-usb/digitv.c | |||
@@ -346,26 +346,7 @@ static struct usb_driver digitv_driver = { | |||
346 | .id_table = digitv_table, | 346 | .id_table = digitv_table, |
347 | }; | 347 | }; |
348 | 348 | ||
349 | /* module stuff */ | 349 | module_usb_driver(digitv_driver); |
350 | static int __init digitv_module_init(void) | ||
351 | { | ||
352 | int result; | ||
353 | if ((result = usb_register(&digitv_driver))) { | ||
354 | err("usb_register failed. Error number %d",result); | ||
355 | return result; | ||
356 | } | ||
357 | |||
358 | return 0; | ||
359 | } | ||
360 | |||
361 | static void __exit digitv_module_exit(void) | ||
362 | { | ||
363 | /* deregister this driver from the USB subsystem */ | ||
364 | usb_deregister(&digitv_driver); | ||
365 | } | ||
366 | |||
367 | module_init (digitv_module_init); | ||
368 | module_exit (digitv_module_exit); | ||
369 | 350 | ||
370 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); | 351 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); |
371 | MODULE_DESCRIPTION("Driver for Nebula Electronics uDigiTV DVB-T USB2.0"); | 352 | MODULE_DESCRIPTION("Driver for Nebula Electronics uDigiTV DVB-T USB2.0"); |
diff --git a/drivers/media/dvb/dvb-usb/dtt200u.c b/drivers/media/dvb/dvb-usb/dtt200u.c index 106dfd55ff9c..66f205c112b2 100644 --- a/drivers/media/dvb/dvb-usb/dtt200u.c +++ b/drivers/media/dvb/dvb-usb/dtt200u.c | |||
@@ -360,26 +360,7 @@ static struct usb_driver dtt200u_usb_driver = { | |||
360 | .id_table = dtt200u_usb_table, | 360 | .id_table = dtt200u_usb_table, |
361 | }; | 361 | }; |
362 | 362 | ||
363 | /* module stuff */ | 363 | module_usb_driver(dtt200u_usb_driver); |
364 | static int __init dtt200u_usb_module_init(void) | ||
365 | { | ||
366 | int result; | ||
367 | if ((result = usb_register(&dtt200u_usb_driver))) { | ||
368 | err("usb_register failed. (%d)",result); | ||
369 | return result; | ||
370 | } | ||
371 | |||
372 | return 0; | ||
373 | } | ||
374 | |||
375 | static void __exit dtt200u_usb_module_exit(void) | ||
376 | { | ||
377 | /* deregister this driver from the USB subsystem */ | ||
378 | usb_deregister(&dtt200u_usb_driver); | ||
379 | } | ||
380 | |||
381 | module_init(dtt200u_usb_module_init); | ||
382 | module_exit(dtt200u_usb_module_exit); | ||
383 | 364 | ||
384 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); | 365 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); |
385 | MODULE_DESCRIPTION("Driver for the WideView/Yakumo/Hama/Typhoon/Club3D/Miglia DVB-T USB2.0 devices"); | 366 | MODULE_DESCRIPTION("Driver for the WideView/Yakumo/Hama/Typhoon/Club3D/Miglia DVB-T USB2.0 devices"); |
diff --git a/drivers/media/dvb/dvb-usb/dtv5100.c b/drivers/media/dvb/dvb-usb/dtv5100.c index 7373132163d2..3d11df41cac0 100644 --- a/drivers/media/dvb/dvb-usb/dtv5100.c +++ b/drivers/media/dvb/dvb-usb/dtv5100.c | |||
@@ -217,26 +217,7 @@ static struct usb_driver dtv5100_driver = { | |||
217 | .id_table = dtv5100_table, | 217 | .id_table = dtv5100_table, |
218 | }; | 218 | }; |
219 | 219 | ||
220 | /* module stuff */ | 220 | module_usb_driver(dtv5100_driver); |
221 | static int __init dtv5100_module_init(void) | ||
222 | { | ||
223 | int ret; | ||
224 | |||
225 | ret = usb_register(&dtv5100_driver); | ||
226 | if (ret) | ||
227 | err("usb_register failed. Error number %d", ret); | ||
228 | |||
229 | return ret; | ||
230 | } | ||
231 | |||
232 | static void __exit dtv5100_module_exit(void) | ||
233 | { | ||
234 | /* deregister this driver from the USB subsystem */ | ||
235 | usb_deregister(&dtv5100_driver); | ||
236 | } | ||
237 | |||
238 | module_init(dtv5100_module_init); | ||
239 | module_exit(dtv5100_module_exit); | ||
240 | 221 | ||
241 | MODULE_AUTHOR(DRIVER_AUTHOR); | 222 | MODULE_AUTHOR(DRIVER_AUTHOR); |
242 | MODULE_DESCRIPTION(DRIVER_DESC); | 223 | MODULE_DESCRIPTION(DRIVER_DESC); |
diff --git a/drivers/media/dvb/dvb-usb/dw2102.c b/drivers/media/dvb/dvb-usb/dw2102.c index 9191f0a57a96..451c5a7adfb2 100644 --- a/drivers/media/dvb/dvb-usb/dw2102.c +++ b/drivers/media/dvb/dvb-usb/dw2102.c | |||
@@ -1943,22 +1943,7 @@ static struct usb_driver dw2102_driver = { | |||
1943 | .id_table = dw2102_table, | 1943 | .id_table = dw2102_table, |
1944 | }; | 1944 | }; |
1945 | 1945 | ||
1946 | static int __init dw2102_module_init(void) | 1946 | module_usb_driver(dw2102_driver); |
1947 | { | ||
1948 | int ret = usb_register(&dw2102_driver); | ||
1949 | if (ret) | ||
1950 | err("usb_register failed. Error number %d", ret); | ||
1951 | |||
1952 | return ret; | ||
1953 | } | ||
1954 | |||
1955 | static void __exit dw2102_module_exit(void) | ||
1956 | { | ||
1957 | usb_deregister(&dw2102_driver); | ||
1958 | } | ||
1959 | |||
1960 | module_init(dw2102_module_init); | ||
1961 | module_exit(dw2102_module_exit); | ||
1962 | 1947 | ||
1963 | MODULE_AUTHOR("Igor M. Liplianin (c) liplianin@me.by"); | 1948 | MODULE_AUTHOR("Igor M. Liplianin (c) liplianin@me.by"); |
1964 | MODULE_DESCRIPTION("Driver for DVBWorld DVB-S 2101, 2102, DVB-S2 2104," | 1949 | MODULE_DESCRIPTION("Driver for DVBWorld DVB-S 2101, 2102, DVB-S2 2104," |
diff --git a/drivers/media/dvb/dvb-usb/ec168.c b/drivers/media/dvb/dvb-usb/ec168.c index 78442fe4aa5e..b4989ba8897d 100644 --- a/drivers/media/dvb/dvb-usb/ec168.c +++ b/drivers/media/dvb/dvb-usb/ec168.c | |||
@@ -428,27 +428,7 @@ static struct usb_driver ec168_driver = { | |||
428 | .id_table = ec168_id, | 428 | .id_table = ec168_id, |
429 | }; | 429 | }; |
430 | 430 | ||
431 | /* module stuff */ | 431 | module_usb_driver(ec168_driver); |
432 | static int __init ec168_module_init(void) | ||
433 | { | ||
434 | int ret; | ||
435 | deb_info("%s:\n", __func__); | ||
436 | ret = usb_register(&ec168_driver); | ||
437 | if (ret) | ||
438 | err("module init failed:%d", ret); | ||
439 | |||
440 | return ret; | ||
441 | } | ||
442 | |||
443 | static void __exit ec168_module_exit(void) | ||
444 | { | ||
445 | deb_info("%s:\n", __func__); | ||
446 | /* deregister this driver from the USB subsystem */ | ||
447 | usb_deregister(&ec168_driver); | ||
448 | } | ||
449 | |||
450 | module_init(ec168_module_init); | ||
451 | module_exit(ec168_module_exit); | ||
452 | 432 | ||
453 | MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); | 433 | MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); |
454 | MODULE_DESCRIPTION("E3C EC168 DVB-T USB2.0 driver"); | 434 | MODULE_DESCRIPTION("E3C EC168 DVB-T USB2.0 driver"); |
diff --git a/drivers/media/dvb/dvb-usb/friio.c b/drivers/media/dvb/dvb-usb/friio.c index b092dc2137cd..474a17e4db0c 100644 --- a/drivers/media/dvb/dvb-usb/friio.c +++ b/drivers/media/dvb/dvb-usb/friio.c | |||
@@ -514,28 +514,7 @@ static struct usb_driver friio_driver = { | |||
514 | .id_table = friio_table, | 514 | .id_table = friio_table, |
515 | }; | 515 | }; |
516 | 516 | ||
517 | 517 | module_usb_driver(friio_driver); | |
518 | /* module stuff */ | ||
519 | static int __init friio_module_init(void) | ||
520 | { | ||
521 | int ret; | ||
522 | |||
523 | ret = usb_register(&friio_driver); | ||
524 | if (ret) | ||
525 | err("usb_register failed. Error number %d", ret); | ||
526 | |||
527 | return ret; | ||
528 | } | ||
529 | |||
530 | |||
531 | static void __exit friio_module_exit(void) | ||
532 | { | ||
533 | /* deregister this driver from the USB subsystem */ | ||
534 | usb_deregister(&friio_driver); | ||
535 | } | ||
536 | |||
537 | module_init(friio_module_init); | ||
538 | module_exit(friio_module_exit); | ||
539 | 518 | ||
540 | MODULE_AUTHOR("Akihiro Tsukada <tskd2@yahoo.co.jp>"); | 519 | MODULE_AUTHOR("Akihiro Tsukada <tskd2@yahoo.co.jp>"); |
541 | MODULE_DESCRIPTION("Driver for Friio ISDB-T USB2.0 Receiver"); | 520 | MODULE_DESCRIPTION("Driver for Friio ISDB-T USB2.0 Receiver"); |
diff --git a/drivers/media/dvb/dvb-usb/gl861.c b/drivers/media/dvb/dvb-usb/gl861.c index 63681df244c4..c1f5582e1cdf 100644 --- a/drivers/media/dvb/dvb-usb/gl861.c +++ b/drivers/media/dvb/dvb-usb/gl861.c | |||
@@ -209,26 +209,7 @@ static struct usb_driver gl861_driver = { | |||
209 | .id_table = gl861_table, | 209 | .id_table = gl861_table, |
210 | }; | 210 | }; |
211 | 211 | ||
212 | /* module stuff */ | 212 | module_usb_driver(gl861_driver); |
213 | static int __init gl861_module_init(void) | ||
214 | { | ||
215 | int ret; | ||
216 | |||
217 | ret = usb_register(&gl861_driver); | ||
218 | if (ret) | ||
219 | err("usb_register failed. Error number %d", ret); | ||
220 | |||
221 | return ret; | ||
222 | } | ||
223 | |||
224 | static void __exit gl861_module_exit(void) | ||
225 | { | ||
226 | /* deregister this driver from the USB subsystem */ | ||
227 | usb_deregister(&gl861_driver); | ||
228 | } | ||
229 | |||
230 | module_init(gl861_module_init); | ||
231 | module_exit(gl861_module_exit); | ||
232 | 213 | ||
233 | MODULE_AUTHOR("Carl Lundqvist <comabug@gmail.com>"); | 214 | MODULE_AUTHOR("Carl Lundqvist <comabug@gmail.com>"); |
234 | MODULE_DESCRIPTION("Driver MSI Mega Sky 580 DVB-T USB2.0 / GL861"); | 215 | MODULE_DESCRIPTION("Driver MSI Mega Sky 580 DVB-T USB2.0 / GL861"); |
diff --git a/drivers/media/dvb/dvb-usb/gp8psk.c b/drivers/media/dvb/dvb-usb/gp8psk.c index 5f71284703d0..5d0384dd45b5 100644 --- a/drivers/media/dvb/dvb-usb/gp8psk.c +++ b/drivers/media/dvb/dvb-usb/gp8psk.c | |||
@@ -320,26 +320,7 @@ static struct usb_driver gp8psk_usb_driver = { | |||
320 | .id_table = gp8psk_usb_table, | 320 | .id_table = gp8psk_usb_table, |
321 | }; | 321 | }; |
322 | 322 | ||
323 | /* module stuff */ | 323 | module_usb_driver(gp8psk_usb_driver); |
324 | static int __init gp8psk_usb_module_init(void) | ||
325 | { | ||
326 | int result; | ||
327 | if ((result = usb_register(&gp8psk_usb_driver))) { | ||
328 | err("usb_register failed. (%d)",result); | ||
329 | return result; | ||
330 | } | ||
331 | |||
332 | return 0; | ||
333 | } | ||
334 | |||
335 | static void __exit gp8psk_usb_module_exit(void) | ||
336 | { | ||
337 | /* deregister this driver from the USB subsystem */ | ||
338 | usb_deregister(&gp8psk_usb_driver); | ||
339 | } | ||
340 | |||
341 | module_init(gp8psk_usb_module_init); | ||
342 | module_exit(gp8psk_usb_module_exit); | ||
343 | 324 | ||
344 | MODULE_AUTHOR("Alan Nisota <alannisota@gamil.com>"); | 325 | MODULE_AUTHOR("Alan Nisota <alannisota@gamil.com>"); |
345 | MODULE_DESCRIPTION("Driver for Genpix DVB-S"); | 326 | MODULE_DESCRIPTION("Driver for Genpix DVB-S"); |
diff --git a/drivers/media/dvb/dvb-usb/it913x.c b/drivers/media/dvb/dvb-usb/it913x.c index 654aa7ceddf9..9f01cd7a6e3f 100644 --- a/drivers/media/dvb/dvb-usb/it913x.c +++ b/drivers/media/dvb/dvb-usb/it913x.c | |||
@@ -819,26 +819,7 @@ static struct usb_driver it913x_driver = { | |||
819 | .id_table = it913x_table, | 819 | .id_table = it913x_table, |
820 | }; | 820 | }; |
821 | 821 | ||
822 | /* module stuff */ | 822 | module_usb_driver(it913x_driver); |
823 | static int __init it913x_module_init(void) | ||
824 | { | ||
825 | int result = usb_register(&it913x_driver); | ||
826 | if (result) { | ||
827 | err("usb_register failed. Error number %d", result); | ||
828 | return result; | ||
829 | } | ||
830 | |||
831 | return 0; | ||
832 | } | ||
833 | |||
834 | static void __exit it913x_module_exit(void) | ||
835 | { | ||
836 | /* deregister this driver from the USB subsystem */ | ||
837 | usb_deregister(&it913x_driver); | ||
838 | } | ||
839 | |||
840 | module_init(it913x_module_init); | ||
841 | module_exit(it913x_module_exit); | ||
842 | 823 | ||
843 | MODULE_AUTHOR("Malcolm Priestley <tvboxspy@gmail.com>"); | 824 | MODULE_AUTHOR("Malcolm Priestley <tvboxspy@gmail.com>"); |
844 | MODULE_DESCRIPTION("it913x USB 2 Driver"); | 825 | MODULE_DESCRIPTION("it913x USB 2 Driver"); |
diff --git a/drivers/media/dvb/dvb-usb/lmedm04.c b/drivers/media/dvb/dvb-usb/lmedm04.c index 767c87f24786..b3fe05bbffc9 100644 --- a/drivers/media/dvb/dvb-usb/lmedm04.c +++ b/drivers/media/dvb/dvb-usb/lmedm04.c | |||
@@ -1291,26 +1291,7 @@ static struct usb_driver lme2510_driver = { | |||
1291 | .id_table = lme2510_table, | 1291 | .id_table = lme2510_table, |
1292 | }; | 1292 | }; |
1293 | 1293 | ||
1294 | /* module stuff */ | 1294 | module_usb_driver(lme2510_driver); |
1295 | static int __init lme2510_module_init(void) | ||
1296 | { | ||
1297 | int result = usb_register(&lme2510_driver); | ||
1298 | if (result) { | ||
1299 | err("usb_register failed. Error number %d", result); | ||
1300 | return result; | ||
1301 | } | ||
1302 | |||
1303 | return 0; | ||
1304 | } | ||
1305 | |||
1306 | static void __exit lme2510_module_exit(void) | ||
1307 | { | ||
1308 | /* deregister this driver from the USB subsystem */ | ||
1309 | usb_deregister(&lme2510_driver); | ||
1310 | } | ||
1311 | |||
1312 | module_init(lme2510_module_init); | ||
1313 | module_exit(lme2510_module_exit); | ||
1314 | 1295 | ||
1315 | MODULE_AUTHOR("Malcolm Priestley <tvboxspy@gmail.com>"); | 1296 | MODULE_AUTHOR("Malcolm Priestley <tvboxspy@gmail.com>"); |
1316 | MODULE_DESCRIPTION("LME2510(C) DVB-S USB2.0"); | 1297 | MODULE_DESCRIPTION("LME2510(C) DVB-S USB2.0"); |
diff --git a/drivers/media/dvb/dvb-usb/m920x.c b/drivers/media/dvb/dvb-usb/m920x.c index a1e1287c949e..288af29a8bb7 100644 --- a/drivers/media/dvb/dvb-usb/m920x.c +++ b/drivers/media/dvb/dvb-usb/m920x.c | |||
@@ -1086,27 +1086,7 @@ static struct usb_driver m920x_driver = { | |||
1086 | .id_table = m920x_table, | 1086 | .id_table = m920x_table, |
1087 | }; | 1087 | }; |
1088 | 1088 | ||
1089 | /* module stuff */ | 1089 | module_usb_driver(m920x_driver); |
1090 | static int __init m920x_module_init(void) | ||
1091 | { | ||
1092 | int ret; | ||
1093 | |||
1094 | if ((ret = usb_register(&m920x_driver))) { | ||
1095 | err("usb_register failed. Error number %d", ret); | ||
1096 | return ret; | ||
1097 | } | ||
1098 | |||
1099 | return 0; | ||
1100 | } | ||
1101 | |||
1102 | static void __exit m920x_module_exit(void) | ||
1103 | { | ||
1104 | /* deregister this driver from the USB subsystem */ | ||
1105 | usb_deregister(&m920x_driver); | ||
1106 | } | ||
1107 | |||
1108 | module_init (m920x_module_init); | ||
1109 | module_exit (m920x_module_exit); | ||
1110 | 1090 | ||
1111 | MODULE_AUTHOR("Aapo Tahkola <aet@rasterburn.org>"); | 1091 | MODULE_AUTHOR("Aapo Tahkola <aet@rasterburn.org>"); |
1112 | MODULE_DESCRIPTION("DVB Driver for ULI M920x"); | 1092 | MODULE_DESCRIPTION("DVB Driver for ULI M920x"); |
diff --git a/drivers/media/dvb/dvb-usb/mxl111sf.c b/drivers/media/dvb/dvb-usb/mxl111sf.c index 34e6f8d94dc2..38ef0253d3b5 100644 --- a/drivers/media/dvb/dvb-usb/mxl111sf.c +++ b/drivers/media/dvb/dvb-usb/mxl111sf.c | |||
@@ -1047,24 +1047,7 @@ static struct usb_driver mxl111sf_driver = { | |||
1047 | .id_table = mxl111sf_table, | 1047 | .id_table = mxl111sf_table, |
1048 | }; | 1048 | }; |
1049 | 1049 | ||
1050 | static int __init mxl111sf_module_init(void) | 1050 | module_usb_driver(mxl111sf_driver); |
1051 | { | ||
1052 | int result = usb_register(&mxl111sf_driver); | ||
1053 | if (result) { | ||
1054 | err("usb_register failed. Error number %d", result); | ||
1055 | return result; | ||
1056 | } | ||
1057 | |||
1058 | return 0; | ||
1059 | } | ||
1060 | |||
1061 | static void __exit mxl111sf_module_exit(void) | ||
1062 | { | ||
1063 | usb_deregister(&mxl111sf_driver); | ||
1064 | } | ||
1065 | |||
1066 | module_init(mxl111sf_module_init); | ||
1067 | module_exit(mxl111sf_module_exit); | ||
1068 | 1051 | ||
1069 | MODULE_AUTHOR("Michael Krufky <mkrufky@kernellabs.com>"); | 1052 | MODULE_AUTHOR("Michael Krufky <mkrufky@kernellabs.com>"); |
1070 | MODULE_DESCRIPTION("Driver for MaxLinear MxL111SF"); | 1053 | MODULE_DESCRIPTION("Driver for MaxLinear MxL111SF"); |
diff --git a/drivers/media/dvb/dvb-usb/nova-t-usb2.c b/drivers/media/dvb/dvb-usb/nova-t-usb2.c index 21384da6570e..6c55384e2fca 100644 --- a/drivers/media/dvb/dvb-usb/nova-t-usb2.c +++ b/drivers/media/dvb/dvb-usb/nova-t-usb2.c | |||
@@ -225,26 +225,7 @@ static struct usb_driver nova_t_driver = { | |||
225 | .id_table = nova_t_table, | 225 | .id_table = nova_t_table, |
226 | }; | 226 | }; |
227 | 227 | ||
228 | /* module stuff */ | 228 | module_usb_driver(nova_t_driver); |
229 | static int __init nova_t_module_init(void) | ||
230 | { | ||
231 | int result; | ||
232 | if ((result = usb_register(&nova_t_driver))) { | ||
233 | err("usb_register failed. Error number %d",result); | ||
234 | return result; | ||
235 | } | ||
236 | |||
237 | return 0; | ||
238 | } | ||
239 | |||
240 | static void __exit nova_t_module_exit(void) | ||
241 | { | ||
242 | /* deregister this driver from the USB subsystem */ | ||
243 | usb_deregister(&nova_t_driver); | ||
244 | } | ||
245 | |||
246 | module_init (nova_t_module_init); | ||
247 | module_exit (nova_t_module_exit); | ||
248 | 229 | ||
249 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); | 230 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); |
250 | MODULE_DESCRIPTION("Hauppauge WinTV-NOVA-T usb2"); | 231 | MODULE_DESCRIPTION("Hauppauge WinTV-NOVA-T usb2"); |
diff --git a/drivers/media/dvb/dvb-usb/opera1.c b/drivers/media/dvb/dvb-usb/opera1.c index 98fd9a6092b7..c8a95042dfbc 100644 --- a/drivers/media/dvb/dvb-usb/opera1.c +++ b/drivers/media/dvb/dvb-usb/opera1.c | |||
@@ -574,22 +574,7 @@ static struct usb_driver opera1_driver = { | |||
574 | .id_table = opera1_table, | 574 | .id_table = opera1_table, |
575 | }; | 575 | }; |
576 | 576 | ||
577 | static int __init opera1_module_init(void) | 577 | module_usb_driver(opera1_driver); |
578 | { | ||
579 | int result = 0; | ||
580 | if ((result = usb_register(&opera1_driver))) { | ||
581 | err("usb_register failed. Error number %d", result); | ||
582 | } | ||
583 | return result; | ||
584 | } | ||
585 | |||
586 | static void __exit opera1_module_exit(void) | ||
587 | { | ||
588 | usb_deregister(&opera1_driver); | ||
589 | } | ||
590 | |||
591 | module_init(opera1_module_init); | ||
592 | module_exit(opera1_module_exit); | ||
593 | 578 | ||
594 | MODULE_AUTHOR("Mario Hlawitschka (c) dh1pa@amsat.org"); | 579 | MODULE_AUTHOR("Mario Hlawitschka (c) dh1pa@amsat.org"); |
595 | MODULE_AUTHOR("Marco Gittler (c) g.marco@freenet.de"); | 580 | MODULE_AUTHOR("Marco Gittler (c) g.marco@freenet.de"); |
diff --git a/drivers/media/dvb/dvb-usb/pctv452e.c b/drivers/media/dvb/dvb-usb/pctv452e.c index f9aec5cb6e77..f526eb05cc7a 100644 --- a/drivers/media/dvb/dvb-usb/pctv452e.c +++ b/drivers/media/dvb/dvb-usb/pctv452e.c | |||
@@ -1055,22 +1055,7 @@ static struct usb_driver pctv452e_usb_driver = { | |||
1055 | .id_table = pctv452e_usb_table, | 1055 | .id_table = pctv452e_usb_table, |
1056 | }; | 1056 | }; |
1057 | 1057 | ||
1058 | static int __init pctv452e_usb_init(void) | 1058 | module_usb_driver(pctv452e_usb_driver); |
1059 | { | ||
1060 | int ret = usb_register(&pctv452e_usb_driver); | ||
1061 | if (ret) | ||
1062 | err("%s: usb_register failed! Error %d", __FILE__, ret); | ||
1063 | |||
1064 | return ret; | ||
1065 | } | ||
1066 | |||
1067 | static void __exit pctv452e_usb_exit(void) | ||
1068 | { | ||
1069 | usb_deregister(&pctv452e_usb_driver); | ||
1070 | } | ||
1071 | |||
1072 | module_init(pctv452e_usb_init); | ||
1073 | module_exit(pctv452e_usb_exit); | ||
1074 | 1059 | ||
1075 | MODULE_AUTHOR("Dominik Kuhlen <dkuhlen@gmx.net>"); | 1060 | MODULE_AUTHOR("Dominik Kuhlen <dkuhlen@gmx.net>"); |
1076 | MODULE_AUTHOR("Andre Weidemann <Andre.Weidemann@web.de>"); | 1061 | MODULE_AUTHOR("Andre Weidemann <Andre.Weidemann@web.de>"); |
diff --git a/drivers/media/dvb/dvb-usb/technisat-usb2.c b/drivers/media/dvb/dvb-usb/technisat-usb2.c index 0998fe961950..acefaa89cc53 100644 --- a/drivers/media/dvb/dvb-usb/technisat-usb2.c +++ b/drivers/media/dvb/dvb-usb/technisat-usb2.c | |||
@@ -781,25 +781,7 @@ static struct usb_driver technisat_usb2_driver = { | |||
781 | .id_table = technisat_usb2_id_table, | 781 | .id_table = technisat_usb2_id_table, |
782 | }; | 782 | }; |
783 | 783 | ||
784 | /* module stuff */ | 784 | module_usb_driver(technisat_usb2_driver); |
785 | static int __init technisat_usb2_module_init(void) | ||
786 | { | ||
787 | int result = usb_register(&technisat_usb2_driver); | ||
788 | if (result) { | ||
789 | err("usb_register failed. Code %d", result); | ||
790 | return result; | ||
791 | } | ||
792 | |||
793 | return 0; | ||
794 | } | ||
795 | |||
796 | static void __exit technisat_usb2_module_exit(void) | ||
797 | { | ||
798 | usb_deregister(&technisat_usb2_driver); | ||
799 | } | ||
800 | |||
801 | module_init(technisat_usb2_module_init); | ||
802 | module_exit(technisat_usb2_module_exit); | ||
803 | 785 | ||
804 | MODULE_AUTHOR("Patrick Boettcher <pboettcher@kernellabs.com>"); | 786 | MODULE_AUTHOR("Patrick Boettcher <pboettcher@kernellabs.com>"); |
805 | MODULE_DESCRIPTION("Driver for Technisat DVB-S/S2 USB 2.0 device"); | 787 | MODULE_DESCRIPTION("Driver for Technisat DVB-S/S2 USB 2.0 device"); |
diff --git a/drivers/media/dvb/dvb-usb/ttusb2.c b/drivers/media/dvb/dvb-usb/ttusb2.c index bc50356c5fb6..e53a1061cb8e 100644 --- a/drivers/media/dvb/dvb-usb/ttusb2.c +++ b/drivers/media/dvb/dvb-usb/ttusb2.c | |||
@@ -812,26 +812,7 @@ static struct usb_driver ttusb2_driver = { | |||
812 | .id_table = ttusb2_table, | 812 | .id_table = ttusb2_table, |
813 | }; | 813 | }; |
814 | 814 | ||
815 | /* module stuff */ | 815 | module_usb_driver(ttusb2_driver); |
816 | static int __init ttusb2_module_init(void) | ||
817 | { | ||
818 | int result; | ||
819 | if ((result = usb_register(&ttusb2_driver))) { | ||
820 | err("usb_register failed. Error number %d",result); | ||
821 | return result; | ||
822 | } | ||
823 | |||
824 | return 0; | ||
825 | } | ||
826 | |||
827 | static void __exit ttusb2_module_exit(void) | ||
828 | { | ||
829 | /* deregister this driver from the USB subsystem */ | ||
830 | usb_deregister(&ttusb2_driver); | ||
831 | } | ||
832 | |||
833 | module_init (ttusb2_module_init); | ||
834 | module_exit (ttusb2_module_exit); | ||
835 | 816 | ||
836 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); | 817 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); |
837 | MODULE_DESCRIPTION("Driver for Pinnacle PCTV 400e DVB-S USB2.0"); | 818 | MODULE_DESCRIPTION("Driver for Pinnacle PCTV 400e DVB-S USB2.0"); |
diff --git a/drivers/media/dvb/dvb-usb/umt-010.c b/drivers/media/dvb/dvb-usb/umt-010.c index 463673a5c2b2..9b042292e788 100644 --- a/drivers/media/dvb/dvb-usb/umt-010.c +++ b/drivers/media/dvb/dvb-usb/umt-010.c | |||
@@ -143,26 +143,7 @@ static struct usb_driver umt_driver = { | |||
143 | .id_table = umt_table, | 143 | .id_table = umt_table, |
144 | }; | 144 | }; |
145 | 145 | ||
146 | /* module stuff */ | 146 | module_usb_driver(umt_driver); |
147 | static int __init umt_module_init(void) | ||
148 | { | ||
149 | int result; | ||
150 | if ((result = usb_register(&umt_driver))) { | ||
151 | err("usb_register failed. Error number %d",result); | ||
152 | return result; | ||
153 | } | ||
154 | |||
155 | return 0; | ||
156 | } | ||
157 | |||
158 | static void __exit umt_module_exit(void) | ||
159 | { | ||
160 | /* deregister this driver from the USB subsystem */ | ||
161 | usb_deregister(&umt_driver); | ||
162 | } | ||
163 | |||
164 | module_init (umt_module_init); | ||
165 | module_exit (umt_module_exit); | ||
166 | 147 | ||
167 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); | 148 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); |
168 | MODULE_DESCRIPTION("Driver for HanfTek UMT 010 USB2.0 DVB-T device"); | 149 | MODULE_DESCRIPTION("Driver for HanfTek UMT 010 USB2.0 DVB-T device"); |
diff --git a/drivers/media/dvb/dvb-usb/vp702x.c b/drivers/media/dvb/dvb-usb/vp702x.c index 45e31f224814..07c673a6e764 100644 --- a/drivers/media/dvb/dvb-usb/vp702x.c +++ b/drivers/media/dvb/dvb-usb/vp702x.c | |||
@@ -436,26 +436,7 @@ static struct usb_driver vp702x_usb_driver = { | |||
436 | .id_table = vp702x_usb_table, | 436 | .id_table = vp702x_usb_table, |
437 | }; | 437 | }; |
438 | 438 | ||
439 | /* module stuff */ | 439 | module_usb_driver(vp702x_usb_driver); |
440 | static int __init vp702x_usb_module_init(void) | ||
441 | { | ||
442 | int result; | ||
443 | if ((result = usb_register(&vp702x_usb_driver))) { | ||
444 | err("usb_register failed. (%d)",result); | ||
445 | return result; | ||
446 | } | ||
447 | |||
448 | return 0; | ||
449 | } | ||
450 | |||
451 | static void __exit vp702x_usb_module_exit(void) | ||
452 | { | ||
453 | /* deregister this driver from the USB subsystem */ | ||
454 | usb_deregister(&vp702x_usb_driver); | ||
455 | } | ||
456 | |||
457 | module_init(vp702x_usb_module_init); | ||
458 | module_exit(vp702x_usb_module_exit); | ||
459 | 440 | ||
460 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); | 441 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); |
461 | MODULE_DESCRIPTION("Driver for Twinhan StarBox DVB-S USB2.0 and clones"); | 442 | MODULE_DESCRIPTION("Driver for Twinhan StarBox DVB-S USB2.0 and clones"); |
diff --git a/drivers/media/dvb/dvb-usb/vp7045.c b/drivers/media/dvb/dvb-usb/vp7045.c index 90873af5682e..d750724132ee 100644 --- a/drivers/media/dvb/dvb-usb/vp7045.c +++ b/drivers/media/dvb/dvb-usb/vp7045.c | |||
@@ -294,26 +294,7 @@ static struct usb_driver vp7045_usb_driver = { | |||
294 | .id_table = vp7045_usb_table, | 294 | .id_table = vp7045_usb_table, |
295 | }; | 295 | }; |
296 | 296 | ||
297 | /* module stuff */ | 297 | module_usb_driver(vp7045_usb_driver); |
298 | static int __init vp7045_usb_module_init(void) | ||
299 | { | ||
300 | int result; | ||
301 | if ((result = usb_register(&vp7045_usb_driver))) { | ||
302 | err("usb_register failed. (%d)",result); | ||
303 | return result; | ||
304 | } | ||
305 | |||
306 | return 0; | ||
307 | } | ||
308 | |||
309 | static void __exit vp7045_usb_module_exit(void) | ||
310 | { | ||
311 | /* deregister this driver from the USB subsystem */ | ||
312 | usb_deregister(&vp7045_usb_driver); | ||
313 | } | ||
314 | |||
315 | module_init(vp7045_usb_module_init); | ||
316 | module_exit(vp7045_usb_module_exit); | ||
317 | 298 | ||
318 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); | 299 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); |
319 | MODULE_DESCRIPTION("Driver for Twinhan MagicBox/Alpha and DNTV tinyUSB2 DVB-T USB2.0"); | 300 | MODULE_DESCRIPTION("Driver for Twinhan MagicBox/Alpha and DNTV tinyUSB2 DVB-T USB2.0"); |
diff --git a/drivers/media/dvb/siano/smsusb.c b/drivers/media/dvb/siano/smsusb.c index 51c7121b321a..b1fe5137df09 100644 --- a/drivers/media/dvb/siano/smsusb.c +++ b/drivers/media/dvb/siano/smsusb.c | |||
@@ -557,26 +557,7 @@ static struct usb_driver smsusb_driver = { | |||
557 | .resume = smsusb_resume, | 557 | .resume = smsusb_resume, |
558 | }; | 558 | }; |
559 | 559 | ||
560 | static int __init smsusb_module_init(void) | 560 | module_usb_driver(smsusb_driver); |
561 | { | ||
562 | int rc = usb_register(&smsusb_driver); | ||
563 | if (rc) | ||
564 | sms_err("usb_register failed. Error number %d", rc); | ||
565 | |||
566 | sms_debug(""); | ||
567 | |||
568 | return rc; | ||
569 | } | ||
570 | |||
571 | static void __exit smsusb_module_exit(void) | ||
572 | { | ||
573 | /* Regular USB Cleanup */ | ||
574 | usb_deregister(&smsusb_driver); | ||
575 | sms_info("end"); | ||
576 | } | ||
577 | |||
578 | module_init(smsusb_module_init); | ||
579 | module_exit(smsusb_module_exit); | ||
580 | 561 | ||
581 | MODULE_DESCRIPTION("Driver for the Siano SMS1xxx USB dongle"); | 562 | MODULE_DESCRIPTION("Driver for the Siano SMS1xxx USB dongle"); |
582 | MODULE_AUTHOR("Siano Mobile Silicon, INC. (uris@siano-ms.com)"); | 563 | MODULE_AUTHOR("Siano Mobile Silicon, INC. (uris@siano-ms.com)"); |
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"); |
diff --git a/drivers/media/dvb/ttusb-dec/ttusb_dec.c b/drivers/media/dvb/ttusb-dec/ttusb_dec.c index f893bffa08a3..504c81230339 100644 --- a/drivers/media/dvb/ttusb-dec/ttusb_dec.c +++ b/drivers/media/dvb/ttusb-dec/ttusb_dec.c | |||
@@ -1756,26 +1756,7 @@ static struct usb_driver ttusb_dec_driver = { | |||
1756 | .id_table = ttusb_dec_table, | 1756 | .id_table = ttusb_dec_table, |
1757 | }; | 1757 | }; |
1758 | 1758 | ||
1759 | static int __init ttusb_dec_init(void) | 1759 | module_usb_driver(ttusb_dec_driver); |
1760 | { | ||
1761 | int result; | ||
1762 | |||
1763 | if ((result = usb_register(&ttusb_dec_driver)) < 0) { | ||
1764 | printk("%s: initialisation failed: error %d.\n", __func__, | ||
1765 | result); | ||
1766 | return result; | ||
1767 | } | ||
1768 | |||
1769 | return 0; | ||
1770 | } | ||
1771 | |||
1772 | static void __exit ttusb_dec_exit(void) | ||
1773 | { | ||
1774 | usb_deregister(&ttusb_dec_driver); | ||
1775 | } | ||
1776 | |||
1777 | module_init(ttusb_dec_init); | ||
1778 | module_exit(ttusb_dec_exit); | ||
1779 | 1760 | ||
1780 | MODULE_AUTHOR("Alex Woods <linux-dvb@giblets.org>"); | 1761 | MODULE_AUTHOR("Alex Woods <linux-dvb@giblets.org>"); |
1781 | MODULE_DESCRIPTION(DRIVER_NAME); | 1762 | MODULE_DESCRIPTION(DRIVER_NAME); |
diff --git a/drivers/media/radio/dsbr100.c b/drivers/media/radio/dsbr100.c index 25e58cbf35f0..f36905b63645 100644 --- a/drivers/media/radio/dsbr100.c +++ b/drivers/media/radio/dsbr100.c | |||
@@ -624,21 +624,7 @@ static int usb_dsbr100_probe(struct usb_interface *intf, | |||
624 | return 0; | 624 | return 0; |
625 | } | 625 | } |
626 | 626 | ||
627 | static int __init dsbr100_init(void) | 627 | module_usb_driver(usb_dsbr100_driver); |
628 | { | ||
629 | int retval = usb_register(&usb_dsbr100_driver); | ||
630 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" | ||
631 | DRIVER_DESC "\n"); | ||
632 | return retval; | ||
633 | } | ||
634 | |||
635 | static void __exit dsbr100_exit(void) | ||
636 | { | ||
637 | usb_deregister(&usb_dsbr100_driver); | ||
638 | } | ||
639 | |||
640 | module_init (dsbr100_init); | ||
641 | module_exit (dsbr100_exit); | ||
642 | 628 | ||
643 | MODULE_AUTHOR( DRIVER_AUTHOR ); | 629 | MODULE_AUTHOR( DRIVER_AUTHOR ); |
644 | MODULE_DESCRIPTION( DRIVER_DESC ); | 630 | MODULE_DESCRIPTION( DRIVER_DESC ); |
diff --git a/drivers/media/radio/radio-gemtek.c b/drivers/media/radio/radio-gemtek.c index edadc8449a3d..36ce0611c037 100644 --- a/drivers/media/radio/radio-gemtek.c +++ b/drivers/media/radio/radio-gemtek.c | |||
@@ -47,11 +47,11 @@ MODULE_VERSION("0.0.4"); | |||
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | static int io = CONFIG_RADIO_GEMTEK_PORT; | 49 | static int io = CONFIG_RADIO_GEMTEK_PORT; |
50 | static int probe = CONFIG_RADIO_GEMTEK_PROBE; | 50 | static bool probe = CONFIG_RADIO_GEMTEK_PROBE; |
51 | static int hardmute; | 51 | static bool hardmute; |
52 | static int shutdown = 1; | 52 | static bool shutdown = 1; |
53 | static int keepmuted = 1; | 53 | static bool keepmuted = 1; |
54 | static int initmute = 1; | 54 | static bool initmute = 1; |
55 | static int radio_nr = -1; | 55 | static int radio_nr = -1; |
56 | 56 | ||
57 | module_param(io, int, 0444); | 57 | module_param(io, int, 0444); |
diff --git a/drivers/media/radio/radio-miropcm20.c b/drivers/media/radio/radio-miropcm20.c index 3fb76e3834c9..87c1ee13b058 100644 --- a/drivers/media/radio/radio-miropcm20.c +++ b/drivers/media/radio/radio-miropcm20.c | |||
@@ -23,7 +23,7 @@ static int radio_nr = -1; | |||
23 | module_param(radio_nr, int, 0); | 23 | module_param(radio_nr, int, 0); |
24 | MODULE_PARM_DESC(radio_nr, "Set radio device number (/dev/radioX). Default: -1 (autodetect)"); | 24 | MODULE_PARM_DESC(radio_nr, "Set radio device number (/dev/radioX). Default: -1 (autodetect)"); |
25 | 25 | ||
26 | static int mono; | 26 | static bool mono; |
27 | module_param(mono, bool, 0); | 27 | module_param(mono, bool, 0); |
28 | MODULE_PARM_DESC(mono, "Force tuner into mono mode."); | 28 | MODULE_PARM_DESC(mono, "Force tuner into mono mode."); |
29 | 29 | ||
diff --git a/drivers/media/radio/radio-mr800.c b/drivers/media/radio/radio-mr800.c index 1742bd8110bd..a860a72a58ec 100644 --- a/drivers/media/radio/radio-mr800.c +++ b/drivers/media/radio/radio-mr800.c | |||
@@ -659,25 +659,4 @@ err: | |||
659 | return retval; | 659 | return retval; |
660 | } | 660 | } |
661 | 661 | ||
662 | static int __init amradio_init(void) | 662 | module_usb_driver(usb_amradio_driver); |
663 | { | ||
664 | int retval = usb_register(&usb_amradio_driver); | ||
665 | |||
666 | pr_info(KBUILD_MODNAME | ||
667 | ": version " DRIVER_VERSION " " DRIVER_DESC "\n"); | ||
668 | |||
669 | if (retval) | ||
670 | pr_err(KBUILD_MODNAME | ||
671 | ": usb_register failed. Error number %d\n", retval); | ||
672 | |||
673 | return retval; | ||
674 | } | ||
675 | |||
676 | static void __exit amradio_exit(void) | ||
677 | { | ||
678 | usb_deregister(&usb_amradio_driver); | ||
679 | } | ||
680 | |||
681 | module_init(amradio_init); | ||
682 | module_exit(amradio_exit); | ||
683 | |||
diff --git a/drivers/media/radio/si470x/radio-si470x-usb.c b/drivers/media/radio/si470x/radio-si470x-usb.c index a6ad707fae96..b7debb67932a 100644 --- a/drivers/media/radio/si470x/radio-si470x-usb.c +++ b/drivers/media/radio/si470x/radio-si470x-usb.c | |||
@@ -861,33 +861,7 @@ static struct usb_driver si470x_usb_driver = { | |||
861 | .supports_autosuspend = 1, | 861 | .supports_autosuspend = 1, |
862 | }; | 862 | }; |
863 | 863 | ||
864 | 864 | module_usb_driver(si470x_usb_driver); | |
865 | |||
866 | /************************************************************************** | ||
867 | * Module Interface | ||
868 | **************************************************************************/ | ||
869 | |||
870 | /* | ||
871 | * si470x_module_init - module init | ||
872 | */ | ||
873 | static int __init si470x_module_init(void) | ||
874 | { | ||
875 | printk(KERN_INFO DRIVER_DESC ", Version " DRIVER_VERSION "\n"); | ||
876 | return usb_register(&si470x_usb_driver); | ||
877 | } | ||
878 | |||
879 | |||
880 | /* | ||
881 | * si470x_module_exit - module exit | ||
882 | */ | ||
883 | static void __exit si470x_module_exit(void) | ||
884 | { | ||
885 | usb_deregister(&si470x_usb_driver); | ||
886 | } | ||
887 | |||
888 | |||
889 | module_init(si470x_module_init); | ||
890 | module_exit(si470x_module_exit); | ||
891 | 865 | ||
892 | MODULE_LICENSE("GPL"); | 866 | MODULE_LICENSE("GPL"); |
893 | MODULE_AUTHOR(DRIVER_AUTHOR); | 867 | MODULE_AUTHOR(DRIVER_AUTHOR); |
diff --git a/drivers/media/rc/ati_remote.c b/drivers/media/rc/ati_remote.c index 01bb8daf4b09..baf907b3ce76 100644 --- a/drivers/media/rc/ati_remote.c +++ b/drivers/media/rc/ati_remote.c | |||
@@ -899,38 +899,7 @@ static void ati_remote_disconnect(struct usb_interface *interface) | |||
899 | kfree(ati_remote); | 899 | kfree(ati_remote); |
900 | } | 900 | } |
901 | 901 | ||
902 | /* | 902 | module_usb_driver(ati_remote_driver); |
903 | * ati_remote_init | ||
904 | */ | ||
905 | static int __init ati_remote_init(void) | ||
906 | { | ||
907 | int result; | ||
908 | |||
909 | result = usb_register(&ati_remote_driver); | ||
910 | if (result) | ||
911 | printk(KERN_ERR KBUILD_MODNAME | ||
912 | ": usb_register error #%d\n", result); | ||
913 | else | ||
914 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" | ||
915 | DRIVER_DESC "\n"); | ||
916 | |||
917 | return result; | ||
918 | } | ||
919 | |||
920 | /* | ||
921 | * ati_remote_exit | ||
922 | */ | ||
923 | static void __exit ati_remote_exit(void) | ||
924 | { | ||
925 | usb_deregister(&ati_remote_driver); | ||
926 | } | ||
927 | |||
928 | /* | ||
929 | * module specification | ||
930 | */ | ||
931 | |||
932 | module_init(ati_remote_init); | ||
933 | module_exit(ati_remote_exit); | ||
934 | 903 | ||
935 | MODULE_AUTHOR(DRIVER_AUTHOR); | 904 | MODULE_AUTHOR(DRIVER_AUTHOR); |
936 | MODULE_DESCRIPTION(DRIVER_DESC); | 905 | MODULE_DESCRIPTION(DRIVER_DESC); |
diff --git a/drivers/media/rc/ene_ir.c b/drivers/media/rc/ene_ir.c index cf10ecf5acec..860c112e0fd2 100644 --- a/drivers/media/rc/ene_ir.c +++ b/drivers/media/rc/ene_ir.c | |||
@@ -324,7 +324,7 @@ static int ene_rx_get_sample_reg(struct ene_device *dev) | |||
324 | return dev->extra_buf2_address + r_pointer; | 324 | return dev->extra_buf2_address + r_pointer; |
325 | } | 325 | } |
326 | 326 | ||
327 | dbg("attempt to read beyong ring bufer end"); | 327 | dbg("attempt to read beyond ring buffer end"); |
328 | return 0; | 328 | return 0; |
329 | } | 329 | } |
330 | 330 | ||
diff --git a/drivers/media/rc/ene_ir.h b/drivers/media/rc/ene_ir.h index fd108d90f750..6f978e85db8c 100644 --- a/drivers/media/rc/ene_ir.h +++ b/drivers/media/rc/ene_ir.h | |||
@@ -227,7 +227,7 @@ struct ene_device { | |||
227 | 227 | ||
228 | /* TX buffer */ | 228 | /* TX buffer */ |
229 | unsigned *tx_buffer; /* input samples buffer*/ | 229 | unsigned *tx_buffer; /* input samples buffer*/ |
230 | int tx_pos; /* position in that bufer */ | 230 | int tx_pos; /* position in that buffer */ |
231 | int tx_len; /* current len of tx buffer */ | 231 | int tx_len; /* current len of tx buffer */ |
232 | int tx_done; /* done transmitting */ | 232 | int tx_done; /* done transmitting */ |
233 | /* one more sample pending*/ | 233 | /* one more sample pending*/ |
diff --git a/drivers/media/rc/imon.c b/drivers/media/rc/imon.c index 3f175ebe2766..7f26fdf2e54e 100644 --- a/drivers/media/rc/imon.c +++ b/drivers/media/rc/imon.c | |||
@@ -2476,23 +2476,4 @@ static int imon_resume(struct usb_interface *intf) | |||
2476 | return rc; | 2476 | return rc; |
2477 | } | 2477 | } |
2478 | 2478 | ||
2479 | static int __init imon_init(void) | 2479 | module_usb_driver(imon_driver); |
2480 | { | ||
2481 | int rc; | ||
2482 | |||
2483 | rc = usb_register(&imon_driver); | ||
2484 | if (rc) { | ||
2485 | pr_err("usb register failed(%d)\n", rc); | ||
2486 | rc = -ENODEV; | ||
2487 | } | ||
2488 | |||
2489 | return rc; | ||
2490 | } | ||
2491 | |||
2492 | static void __exit imon_exit(void) | ||
2493 | { | ||
2494 | usb_deregister(&imon_driver); | ||
2495 | } | ||
2496 | |||
2497 | module_init(imon_init); | ||
2498 | module_exit(imon_exit); | ||
diff --git a/drivers/media/rc/lirc_dev.c b/drivers/media/rc/lirc_dev.c index 27997a9ceb0d..ca12d3289bfe 100644 --- a/drivers/media/rc/lirc_dev.c +++ b/drivers/media/rc/lirc_dev.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #include <media/lirc.h> | 38 | #include <media/lirc.h> |
39 | #include <media/lirc_dev.h> | 39 | #include <media/lirc_dev.h> |
40 | 40 | ||
41 | static int debug; | 41 | static bool debug; |
42 | 42 | ||
43 | #define IRCTL_DEV_NAME "BaseRemoteCtl" | 43 | #define IRCTL_DEV_NAME "BaseRemoteCtl" |
44 | #define NOPLUG -1 | 44 | #define NOPLUG -1 |
diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c index 60d3c1e09712..21105bf9594d 100644 --- a/drivers/media/rc/mceusb.c +++ b/drivers/media/rc/mceusb.c | |||
@@ -156,9 +156,9 @@ | |||
156 | 156 | ||
157 | /* module parameters */ | 157 | /* module parameters */ |
158 | #ifdef CONFIG_USB_DEBUG | 158 | #ifdef CONFIG_USB_DEBUG |
159 | static int debug = 1; | 159 | static bool debug = 1; |
160 | #else | 160 | #else |
161 | static int debug; | 161 | static bool debug; |
162 | #endif | 162 | #endif |
163 | 163 | ||
164 | #define mce_dbg(dev, fmt, ...) \ | 164 | #define mce_dbg(dev, fmt, ...) \ |
@@ -1448,25 +1448,7 @@ static struct usb_driver mceusb_dev_driver = { | |||
1448 | .id_table = mceusb_dev_table | 1448 | .id_table = mceusb_dev_table |
1449 | }; | 1449 | }; |
1450 | 1450 | ||
1451 | static int __init mceusb_dev_init(void) | 1451 | module_usb_driver(mceusb_dev_driver); |
1452 | { | ||
1453 | int ret; | ||
1454 | |||
1455 | ret = usb_register(&mceusb_dev_driver); | ||
1456 | if (ret < 0) | ||
1457 | printk(KERN_ERR DRIVER_NAME | ||
1458 | ": usb register failed, result = %d\n", ret); | ||
1459 | |||
1460 | return ret; | ||
1461 | } | ||
1462 | |||
1463 | static void __exit mceusb_dev_exit(void) | ||
1464 | { | ||
1465 | usb_deregister(&mceusb_dev_driver); | ||
1466 | } | ||
1467 | |||
1468 | module_init(mceusb_dev_init); | ||
1469 | module_exit(mceusb_dev_exit); | ||
1470 | 1452 | ||
1471 | MODULE_DESCRIPTION(DRIVER_DESC); | 1453 | MODULE_DESCRIPTION(DRIVER_DESC); |
1472 | MODULE_AUTHOR(DRIVER_AUTHOR); | 1454 | MODULE_AUTHOR(DRIVER_AUTHOR); |
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index 0ea55ea2b71d..f6a930b70c69 100644 --- a/drivers/media/rc/rc-main.c +++ b/drivers/media/rc/rc-main.c | |||
@@ -715,7 +715,7 @@ static void ir_close(struct input_dev *idev) | |||
715 | } | 715 | } |
716 | 716 | ||
717 | /* class for /sys/class/rc */ | 717 | /* class for /sys/class/rc */ |
718 | static char *ir_devnode(struct device *dev, mode_t *mode) | 718 | static char *ir_devnode(struct device *dev, umode_t *mode) |
719 | { | 719 | { |
720 | return kasprintf(GFP_KERNEL, "rc/%s", dev_name(dev)); | 720 | return kasprintf(GFP_KERNEL, "rc/%s", dev_name(dev)); |
721 | } | 721 | } |
diff --git a/drivers/media/rc/redrat3.c b/drivers/media/rc/redrat3.c index 9bff23cb0a5b..ad95c67a4dba 100644 --- a/drivers/media/rc/redrat3.c +++ b/drivers/media/rc/redrat3.c | |||
@@ -1284,25 +1284,7 @@ static struct usb_driver redrat3_dev_driver = { | |||
1284 | .id_table = redrat3_dev_table | 1284 | .id_table = redrat3_dev_table |
1285 | }; | 1285 | }; |
1286 | 1286 | ||
1287 | static int __init redrat3_dev_init(void) | 1287 | module_usb_driver(redrat3_dev_driver); |
1288 | { | ||
1289 | int ret; | ||
1290 | |||
1291 | ret = usb_register(&redrat3_dev_driver); | ||
1292 | if (ret < 0) | ||
1293 | pr_err(DRIVER_NAME | ||
1294 | ": usb register failed, result = %d\n", ret); | ||
1295 | |||
1296 | return ret; | ||
1297 | } | ||
1298 | |||
1299 | static void __exit redrat3_dev_exit(void) | ||
1300 | { | ||
1301 | usb_deregister(&redrat3_dev_driver); | ||
1302 | } | ||
1303 | |||
1304 | module_init(redrat3_dev_init); | ||
1305 | module_exit(redrat3_dev_exit); | ||
1306 | 1288 | ||
1307 | MODULE_DESCRIPTION(DRIVER_DESC); | 1289 | MODULE_DESCRIPTION(DRIVER_DESC); |
1308 | MODULE_AUTHOR(DRIVER_AUTHOR); | 1290 | MODULE_AUTHOR(DRIVER_AUTHOR); |
diff --git a/drivers/media/rc/streamzap.c b/drivers/media/rc/streamzap.c index e435d94c0776..d6f4bfe09391 100644 --- a/drivers/media/rc/streamzap.c +++ b/drivers/media/rc/streamzap.c | |||
@@ -43,9 +43,9 @@ | |||
43 | #define DRIVER_DESC "Streamzap Remote Control driver" | 43 | #define DRIVER_DESC "Streamzap Remote Control driver" |
44 | 44 | ||
45 | #ifdef CONFIG_USB_DEBUG | 45 | #ifdef CONFIG_USB_DEBUG |
46 | static int debug = 1; | 46 | static bool debug = 1; |
47 | #else | 47 | #else |
48 | static int debug; | 48 | static bool debug; |
49 | #endif | 49 | #endif |
50 | 50 | ||
51 | #define USB_STREAMZAP_VENDOR_ID 0x0e9c | 51 | #define USB_STREAMZAP_VENDOR_ID 0x0e9c |
@@ -523,33 +523,7 @@ static int streamzap_resume(struct usb_interface *intf) | |||
523 | return 0; | 523 | return 0; |
524 | } | 524 | } |
525 | 525 | ||
526 | /** | 526 | module_usb_driver(streamzap_driver); |
527 | * streamzap_init | ||
528 | */ | ||
529 | static int __init streamzap_init(void) | ||
530 | { | ||
531 | int ret; | ||
532 | |||
533 | /* register this driver with the USB subsystem */ | ||
534 | ret = usb_register(&streamzap_driver); | ||
535 | if (ret < 0) | ||
536 | printk(KERN_ERR DRIVER_NAME ": usb register failed, " | ||
537 | "result = %d\n", ret); | ||
538 | |||
539 | return ret; | ||
540 | } | ||
541 | |||
542 | /** | ||
543 | * streamzap_exit | ||
544 | */ | ||
545 | static void __exit streamzap_exit(void) | ||
546 | { | ||
547 | usb_deregister(&streamzap_driver); | ||
548 | } | ||
549 | |||
550 | |||
551 | module_init(streamzap_init); | ||
552 | module_exit(streamzap_exit); | ||
553 | 527 | ||
554 | MODULE_AUTHOR("Jarod Wilson <jarod@wilsonet.com>"); | 528 | MODULE_AUTHOR("Jarod Wilson <jarod@wilsonet.com>"); |
555 | MODULE_DESCRIPTION(DRIVER_DESC); | 529 | MODULE_DESCRIPTION(DRIVER_DESC); |
diff --git a/drivers/media/rc/winbond-cir.c b/drivers/media/rc/winbond-cir.c index 13f54b51194a..b09c5fae489b 100644 --- a/drivers/media/rc/winbond-cir.c +++ b/drivers/media/rc/winbond-cir.c | |||
@@ -226,11 +226,11 @@ module_param(protocol, uint, 0444); | |||
226 | MODULE_PARM_DESC(protocol, "IR protocol to use for the power-on command " | 226 | MODULE_PARM_DESC(protocol, "IR protocol to use for the power-on command " |
227 | "(0 = RC5, 1 = NEC, 2 = RC6A, default)"); | 227 | "(0 = RC5, 1 = NEC, 2 = RC6A, default)"); |
228 | 228 | ||
229 | static int invert; /* default = 0 */ | 229 | static bool invert; /* default = 0 */ |
230 | module_param(invert, bool, 0444); | 230 | module_param(invert, bool, 0444); |
231 | MODULE_PARM_DESC(invert, "Invert the signal from the IR receiver"); | 231 | MODULE_PARM_DESC(invert, "Invert the signal from the IR receiver"); |
232 | 232 | ||
233 | static int txandrx; /* default = 0 */ | 233 | static bool txandrx; /* default = 0 */ |
234 | module_param(txandrx, bool, 0444); | 234 | module_param(txandrx, bool, 0444); |
235 | MODULE_PARM_DESC(invert, "Allow simultaneous TX and RX"); | 235 | MODULE_PARM_DESC(invert, "Allow simultaneous TX and RX"); |
236 | 236 | ||
@@ -1176,6 +1176,6 @@ wbcir_exit(void) | |||
1176 | module_init(wbcir_init); | 1176 | module_init(wbcir_init); |
1177 | module_exit(wbcir_exit); | 1177 | module_exit(wbcir_exit); |
1178 | 1178 | ||
1179 | MODULE_AUTHOR("David Härdeman <david@hardeman.nu>"); | 1179 | MODULE_AUTHOR("David Härdeman <david@hardeman.nu>"); |
1180 | MODULE_DESCRIPTION("Winbond SuperI/O Consumer IR Driver"); | 1180 | MODULE_DESCRIPTION("Winbond SuperI/O Consumer IR Driver"); |
1181 | MODULE_LICENSE("GPL"); | 1181 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/media/video/c-qcam.c b/drivers/media/video/c-qcam.c index cd8ff0473184..fda32f52554a 100644 --- a/drivers/media/video/c-qcam.c +++ b/drivers/media/video/c-qcam.c | |||
@@ -72,7 +72,7 @@ struct qcam { | |||
72 | 72 | ||
73 | static int parport[MAX_CAMS] = { [1 ... MAX_CAMS-1] = -1 }; | 73 | static int parport[MAX_CAMS] = { [1 ... MAX_CAMS-1] = -1 }; |
74 | static int probe = 2; | 74 | static int probe = 2; |
75 | static int force_rgb; | 75 | static bool force_rgb; |
76 | static int video_nr = -1; | 76 | static int video_nr = -1; |
77 | 77 | ||
78 | /* FIXME: parport=auto would never have worked, surely? --RR */ | 78 | /* FIXME: parport=auto would never have worked, surely? --RR */ |
diff --git a/drivers/media/video/cs5345.c b/drivers/media/video/cs5345.c index 5909f2557ab4..1d64af9adf71 100644 --- a/drivers/media/video/cs5345.c +++ b/drivers/media/video/cs5345.c | |||
@@ -31,7 +31,7 @@ MODULE_DESCRIPTION("i2c device driver for cs5345 Audio ADC"); | |||
31 | MODULE_AUTHOR("Hans Verkuil"); | 31 | MODULE_AUTHOR("Hans Verkuil"); |
32 | MODULE_LICENSE("GPL"); | 32 | MODULE_LICENSE("GPL"); |
33 | 33 | ||
34 | static int debug; | 34 | static bool debug; |
35 | 35 | ||
36 | module_param(debug, bool, 0644); | 36 | module_param(debug, bool, 0644); |
37 | 37 | ||
diff --git a/drivers/media/video/cs53l32a.c b/drivers/media/video/cs53l32a.c index d93e5ab45fd3..51c5b9ad67d8 100644 --- a/drivers/media/video/cs53l32a.c +++ b/drivers/media/video/cs53l32a.c | |||
@@ -35,7 +35,7 @@ MODULE_DESCRIPTION("i2c device driver for cs53l32a Audio ADC"); | |||
35 | MODULE_AUTHOR("Martin Vaughan"); | 35 | MODULE_AUTHOR("Martin Vaughan"); |
36 | MODULE_LICENSE("GPL"); | 36 | MODULE_LICENSE("GPL"); |
37 | 37 | ||
38 | static int debug; | 38 | static bool debug; |
39 | 39 | ||
40 | module_param(debug, bool, 0644); | 40 | module_param(debug, bool, 0644); |
41 | 41 | ||
diff --git a/drivers/media/video/cx18/cx18-driver.c b/drivers/media/video/cx18/cx18-driver.c index c6ff32a6137c..349bd9c2aff5 100644 --- a/drivers/media/video/cx18/cx18-driver.c +++ b/drivers/media/video/cx18/cx18-driver.c | |||
@@ -75,7 +75,7 @@ static int radio[CX18_MAX_CARDS] = { -1, -1, -1, -1, -1, -1, -1, -1, | |||
75 | -1, -1, -1, -1, -1, -1, -1, -1 }; | 75 | -1, -1, -1, -1, -1, -1, -1, -1 }; |
76 | static unsigned cardtype_c = 1; | 76 | static unsigned cardtype_c = 1; |
77 | static unsigned tuner_c = 1; | 77 | static unsigned tuner_c = 1; |
78 | static unsigned radio_c = 1; | 78 | static bool radio_c = 1; |
79 | static char pal[] = "--"; | 79 | static char pal[] = "--"; |
80 | static char secam[] = "--"; | 80 | static char secam[] = "--"; |
81 | static char ntsc[] = "-"; | 81 | static char ntsc[] = "-"; |
diff --git a/drivers/media/video/cx231xx/cx231xx-cards.c b/drivers/media/video/cx231xx/cx231xx-cards.c index 7d8edb457065..875a7ce94736 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); | ||
diff --git a/drivers/media/video/cx25821/cx25821-alsa.c b/drivers/media/video/cx25821/cx25821-alsa.c index 6142ae2aee40..03cfac476b03 100644 --- a/drivers/media/video/cx25821/cx25821-alsa.c +++ b/drivers/media/video/cx25821/cx25821-alsa.c | |||
@@ -102,7 +102,7 @@ struct cx25821_audio_dev { | |||
102 | 102 | ||
103 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 103 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
104 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 104 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
105 | static int enable[SNDRV_CARDS] = { 1, [1 ... (SNDRV_CARDS - 1)] = 1 }; | 105 | static bool enable[SNDRV_CARDS] = { 1, [1 ... (SNDRV_CARDS - 1)] = 1 }; |
106 | 106 | ||
107 | module_param_array(enable, bool, NULL, 0444); | 107 | module_param_array(enable, bool, NULL, 0444); |
108 | MODULE_PARM_DESC(enable, "Enable cx25821 soundcard. default enabled."); | 108 | MODULE_PARM_DESC(enable, "Enable cx25821 soundcard. default enabled."); |
diff --git a/drivers/media/video/cx88/cx88-alsa.c b/drivers/media/video/cx88/cx88-alsa.c index 68d1240f493c..04bf6627d362 100644 --- a/drivers/media/video/cx88/cx88-alsa.c +++ b/drivers/media/video/cx88/cx88-alsa.c | |||
@@ -96,7 +96,7 @@ typedef struct cx88_audio_dev snd_cx88_card_t; | |||
96 | 96 | ||
97 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 97 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
98 | static const char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 98 | static const char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
99 | static int enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1}; | 99 | static bool enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1}; |
100 | 100 | ||
101 | module_param_array(enable, bool, NULL, 0444); | 101 | module_param_array(enable, bool, NULL, 0444); |
102 | MODULE_PARM_DESC(enable, "Enable cx88x soundcard. default enabled."); | 102 | MODULE_PARM_DESC(enable, "Enable cx88x soundcard. default enabled."); |
diff --git a/drivers/media/video/davinci/vpif.h b/drivers/media/video/davinci/vpif.h index 10550bd93b06..25036cb11bea 100644 --- a/drivers/media/video/davinci/vpif.h +++ b/drivers/media/video/davinci/vpif.h | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/videodev2.h> | 20 | #include <linux/videodev2.h> |
21 | #include <mach/hardware.h> | 21 | #include <mach/hardware.h> |
22 | #include <mach/dm646x.h> | 22 | #include <mach/dm646x.h> |
23 | #include <media/davinci/vpif_types.h> | ||
23 | 24 | ||
24 | /* Maximum channel allowed */ | 25 | /* Maximum channel allowed */ |
25 | #define VPIF_NUM_CHANNELS (4) | 26 | #define VPIF_NUM_CHANNELS (4) |
diff --git a/drivers/media/video/davinci/vpif_capture.h b/drivers/media/video/davinci/vpif_capture.h index 064550f5ce4a..a693d4ebda55 100644 --- a/drivers/media/video/davinci/vpif_capture.h +++ b/drivers/media/video/davinci/vpif_capture.h | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <media/v4l2-device.h> | 27 | #include <media/v4l2-device.h> |
28 | #include <media/videobuf-core.h> | 28 | #include <media/videobuf-core.h> |
29 | #include <media/videobuf-dma-contig.h> | 29 | #include <media/videobuf-dma-contig.h> |
30 | #include <mach/dm646x.h> | 30 | #include <media/davinci/vpif_types.h> |
31 | 31 | ||
32 | #include "vpif.h" | 32 | #include "vpif.h" |
33 | 33 | ||
diff --git a/drivers/media/video/davinci/vpif_display.h b/drivers/media/video/davinci/vpif_display.h index 5d1936dafed2..56879d1a0684 100644 --- a/drivers/media/video/davinci/vpif_display.h +++ b/drivers/media/video/davinci/vpif_display.h | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <media/v4l2-device.h> | 22 | #include <media/v4l2-device.h> |
23 | #include <media/videobuf-core.h> | 23 | #include <media/videobuf-core.h> |
24 | #include <media/videobuf-dma-contig.h> | 24 | #include <media/videobuf-dma-contig.h> |
25 | #include <media/davinci/vpif_types.h> | ||
25 | 26 | ||
26 | #include "vpif.h" | 27 | #include "vpif.h" |
27 | 28 | ||
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c index 9deb5698ec21..4561cd89938d 100644 --- a/drivers/media/video/em28xx/em28xx-cards.c +++ b/drivers/media/video/em28xx/em28xx-cards.c | |||
@@ -3405,26 +3405,4 @@ static struct usb_driver em28xx_usb_driver = { | |||
3405 | .id_table = em28xx_id_table, | 3405 | .id_table = em28xx_id_table, |
3406 | }; | 3406 | }; |
3407 | 3407 | ||
3408 | static int __init em28xx_module_init(void) | 3408 | module_usb_driver(em28xx_usb_driver); |
3409 | { | ||
3410 | int result; | ||
3411 | |||
3412 | /* register this driver with the USB subsystem */ | ||
3413 | result = usb_register(&em28xx_usb_driver); | ||
3414 | if (result) | ||
3415 | em28xx_err(DRIVER_NAME | ||
3416 | " usb_register failed. Error number %d.\n", result); | ||
3417 | |||
3418 | printk(KERN_INFO DRIVER_NAME " driver loaded\n"); | ||
3419 | |||
3420 | return result; | ||
3421 | } | ||
3422 | |||
3423 | static void __exit em28xx_module_exit(void) | ||
3424 | { | ||
3425 | /* deregister this driver with the USB subsystem */ | ||
3426 | usb_deregister(&em28xx_usb_driver); | ||
3427 | } | ||
3428 | |||
3429 | module_init(em28xx_module_init); | ||
3430 | module_exit(em28xx_module_exit); | ||
diff --git a/drivers/media/video/et61x251/et61x251_core.c b/drivers/media/video/et61x251/et61x251_core.c index d3777c86e1de..5539f09440ac 100644 --- a/drivers/media/video/et61x251/et61x251_core.c +++ b/drivers/media/video/et61x251/et61x251_core.c | |||
@@ -76,8 +76,8 @@ MODULE_PARM_DESC(video_nr, | |||
76 | "\none and for every other camera." | 76 | "\none and for every other camera." |
77 | "\n"); | 77 | "\n"); |
78 | 78 | ||
79 | static short force_munmap[] = {[0 ... ET61X251_MAX_DEVICES-1] = | 79 | static bool force_munmap[] = {[0 ... ET61X251_MAX_DEVICES-1] = |
80 | ET61X251_FORCE_MUNMAP}; | 80 | ET61X251_FORCE_MUNMAP}; |
81 | module_param_array(force_munmap, bool, NULL, 0444); | 81 | module_param_array(force_munmap, bool, NULL, 0444); |
82 | MODULE_PARM_DESC(force_munmap, | 82 | MODULE_PARM_DESC(force_munmap, |
83 | "\n<0|1[,...]> Force the application to unmap previously" | 83 | "\n<0|1[,...]> Force the application to unmap previously" |
@@ -2680,27 +2680,4 @@ static struct usb_driver et61x251_usb_driver = { | |||
2680 | .disconnect = et61x251_usb_disconnect, | 2680 | .disconnect = et61x251_usb_disconnect, |
2681 | }; | 2681 | }; |
2682 | 2682 | ||
2683 | /*****************************************************************************/ | 2683 | module_usb_driver(et61x251_usb_driver); |
2684 | |||
2685 | static int __init et61x251_module_init(void) | ||
2686 | { | ||
2687 | int err = 0; | ||
2688 | |||
2689 | KDBG(2, ET61X251_MODULE_NAME " v" ET61X251_MODULE_VERSION); | ||
2690 | KDBG(3, ET61X251_MODULE_AUTHOR); | ||
2691 | |||
2692 | if ((err = usb_register(&et61x251_usb_driver))) | ||
2693 | KDBG(1, "usb_register() failed"); | ||
2694 | |||
2695 | return err; | ||
2696 | } | ||
2697 | |||
2698 | |||
2699 | static void __exit et61x251_module_exit(void) | ||
2700 | { | ||
2701 | usb_deregister(&et61x251_usb_driver); | ||
2702 | } | ||
2703 | |||
2704 | |||
2705 | module_init(et61x251_module_init); | ||
2706 | module_exit(et61x251_module_exit); | ||
diff --git a/drivers/media/video/gspca/benq.c b/drivers/media/video/gspca/benq.c index 390291ceba26..9769f17915c0 100644 --- a/drivers/media/video/gspca/benq.c +++ b/drivers/media/video/gspca/benq.c | |||
@@ -291,15 +291,4 @@ static struct usb_driver sd_driver = { | |||
291 | #endif | 291 | #endif |
292 | }; | 292 | }; |
293 | 293 | ||
294 | /* -- module insert / remove -- */ | 294 | module_usb_driver(sd_driver); |
295 | static int __init sd_mod_init(void) | ||
296 | { | ||
297 | return usb_register(&sd_driver); | ||
298 | } | ||
299 | static void __exit sd_mod_exit(void) | ||
300 | { | ||
301 | usb_deregister(&sd_driver); | ||
302 | } | ||
303 | |||
304 | module_init(sd_mod_init); | ||
305 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/conex.c b/drivers/media/video/gspca/conex.c index 4c56dbef6d92..ea17b5d94ea4 100644 --- a/drivers/media/video/gspca/conex.c +++ b/drivers/media/video/gspca/conex.c | |||
@@ -1067,15 +1067,4 @@ static struct usb_driver sd_driver = { | |||
1067 | #endif | 1067 | #endif |
1068 | }; | 1068 | }; |
1069 | 1069 | ||
1070 | /* -- module insert / remove -- */ | 1070 | module_usb_driver(sd_driver); |
1071 | static int __init sd_mod_init(void) | ||
1072 | { | ||
1073 | return usb_register(&sd_driver); | ||
1074 | } | ||
1075 | static void __exit sd_mod_exit(void) | ||
1076 | { | ||
1077 | usb_deregister(&sd_driver); | ||
1078 | } | ||
1079 | |||
1080 | module_init(sd_mod_init); | ||
1081 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/cpia1.c b/drivers/media/video/gspca/cpia1.c index f9b86b2484b0..8f33bbd091ad 100644 --- a/drivers/media/video/gspca/cpia1.c +++ b/drivers/media/video/gspca/cpia1.c | |||
@@ -2132,15 +2132,4 @@ static struct usb_driver sd_driver = { | |||
2132 | #endif | 2132 | #endif |
2133 | }; | 2133 | }; |
2134 | 2134 | ||
2135 | /* -- module insert / remove -- */ | 2135 | module_usb_driver(sd_driver); |
2136 | static int __init sd_mod_init(void) | ||
2137 | { | ||
2138 | return usb_register(&sd_driver); | ||
2139 | } | ||
2140 | static void __exit sd_mod_exit(void) | ||
2141 | { | ||
2142 | usb_deregister(&sd_driver); | ||
2143 | } | ||
2144 | |||
2145 | module_init(sd_mod_init); | ||
2146 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/etoms.c b/drivers/media/video/gspca/etoms.c index 0357d6d461d1..81a4adbd9f7c 100644 --- a/drivers/media/video/gspca/etoms.c +++ b/drivers/media/video/gspca/etoms.c | |||
@@ -895,16 +895,4 @@ static struct usb_driver sd_driver = { | |||
895 | #endif | 895 | #endif |
896 | }; | 896 | }; |
897 | 897 | ||
898 | /* -- module insert / remove -- */ | 898 | module_usb_driver(sd_driver); |
899 | static int __init sd_mod_init(void) | ||
900 | { | ||
901 | return usb_register(&sd_driver); | ||
902 | } | ||
903 | |||
904 | static void __exit sd_mod_exit(void) | ||
905 | { | ||
906 | usb_deregister(&sd_driver); | ||
907 | } | ||
908 | |||
909 | module_init(sd_mod_init); | ||
910 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/finepix.c b/drivers/media/video/gspca/finepix.c index ea48200fd3a0..0107513cd728 100644 --- a/drivers/media/video/gspca/finepix.c +++ b/drivers/media/video/gspca/finepix.c | |||
@@ -290,16 +290,4 @@ static struct usb_driver sd_driver = { | |||
290 | #endif | 290 | #endif |
291 | }; | 291 | }; |
292 | 292 | ||
293 | /* -- module insert / remove -- */ | 293 | module_usb_driver(sd_driver); |
294 | static int __init sd_mod_init(void) | ||
295 | { | ||
296 | return usb_register(&sd_driver); | ||
297 | } | ||
298 | |||
299 | static void __exit sd_mod_exit(void) | ||
300 | { | ||
301 | usb_deregister(&sd_driver); | ||
302 | } | ||
303 | |||
304 | module_init(sd_mod_init); | ||
305 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/gl860/gl860.c b/drivers/media/video/gspca/gl860/gl860.c index d74da8e0fef9..c84e26006fc3 100644 --- a/drivers/media/video/gspca/gl860/gl860.c +++ b/drivers/media/video/gspca/gl860/gl860.c | |||
@@ -523,22 +523,7 @@ static struct usb_driver sd_driver = { | |||
523 | 523 | ||
524 | /*====================== Init and Exit module functions ====================*/ | 524 | /*====================== Init and Exit module functions ====================*/ |
525 | 525 | ||
526 | static int __init sd_mod_init(void) | 526 | module_usb_driver(sd_driver); |
527 | { | ||
528 | PDEBUG(D_PROBE, "driver startup - version %s", DRIVER_VERSION); | ||
529 | |||
530 | if (usb_register(&sd_driver) < 0) | ||
531 | return -1; | ||
532 | return 0; | ||
533 | } | ||
534 | |||
535 | static void __exit sd_mod_exit(void) | ||
536 | { | ||
537 | usb_deregister(&sd_driver); | ||
538 | } | ||
539 | |||
540 | module_init(sd_mod_init); | ||
541 | module_exit(sd_mod_exit); | ||
542 | 527 | ||
543 | /*==========================================================================*/ | 528 | /*==========================================================================*/ |
544 | 529 | ||
diff --git a/drivers/media/video/gspca/jeilinj.c b/drivers/media/video/gspca/jeilinj.c index 8e3dabe30077..5ab3f7e12760 100644 --- a/drivers/media/video/gspca/jeilinj.c +++ b/drivers/media/video/gspca/jeilinj.c | |||
@@ -582,16 +582,4 @@ static struct usb_driver sd_driver = { | |||
582 | #endif | 582 | #endif |
583 | }; | 583 | }; |
584 | 584 | ||
585 | /* -- module insert / remove -- */ | 585 | module_usb_driver(sd_driver); |
586 | static int __init sd_mod_init(void) | ||
587 | { | ||
588 | return usb_register(&sd_driver); | ||
589 | } | ||
590 | |||
591 | static void __exit sd_mod_exit(void) | ||
592 | { | ||
593 | usb_deregister(&sd_driver); | ||
594 | } | ||
595 | |||
596 | module_init(sd_mod_init); | ||
597 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/kinect.c b/drivers/media/video/gspca/kinect.c index 4fe51fda80f3..e8e8f2fe9166 100644 --- a/drivers/media/video/gspca/kinect.c +++ b/drivers/media/video/gspca/kinect.c | |||
@@ -413,16 +413,4 @@ static struct usb_driver sd_driver = { | |||
413 | #endif | 413 | #endif |
414 | }; | 414 | }; |
415 | 415 | ||
416 | /* -- module insert / remove -- */ | 416 | module_usb_driver(sd_driver); |
417 | static int __init sd_mod_init(void) | ||
418 | { | ||
419 | return usb_register(&sd_driver); | ||
420 | } | ||
421 | |||
422 | static void __exit sd_mod_exit(void) | ||
423 | { | ||
424 | usb_deregister(&sd_driver); | ||
425 | } | ||
426 | |||
427 | module_init(sd_mod_init); | ||
428 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/konica.c b/drivers/media/video/gspca/konica.c index 494b05ed8f1a..f0c0d74dfe92 100644 --- a/drivers/media/video/gspca/konica.c +++ b/drivers/media/video/gspca/konica.c | |||
@@ -631,15 +631,4 @@ static struct usb_driver sd_driver = { | |||
631 | #endif | 631 | #endif |
632 | }; | 632 | }; |
633 | 633 | ||
634 | /* -- module insert / remove -- */ | 634 | module_usb_driver(sd_driver); |
635 | static int __init sd_mod_init(void) | ||
636 | { | ||
637 | return usb_register(&sd_driver); | ||
638 | } | ||
639 | static void __exit sd_mod_exit(void) | ||
640 | { | ||
641 | usb_deregister(&sd_driver); | ||
642 | } | ||
643 | |||
644 | module_init(sd_mod_init); | ||
645 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/m5602/m5602_core.c b/drivers/media/video/gspca/m5602/m5602_core.c index 67533e5582a6..0c4493675438 100644 --- a/drivers/media/video/gspca/m5602/m5602_core.c +++ b/drivers/media/video/gspca/m5602/m5602_core.c | |||
@@ -27,8 +27,8 @@ | |||
27 | 27 | ||
28 | /* Kernel module parameters */ | 28 | /* Kernel module parameters */ |
29 | int force_sensor; | 29 | int force_sensor; |
30 | static int dump_bridge; | 30 | static bool dump_bridge; |
31 | int dump_sensor; | 31 | bool dump_sensor; |
32 | 32 | ||
33 | static const struct usb_device_id m5602_table[] = { | 33 | static const struct usb_device_id m5602_table[] = { |
34 | {USB_DEVICE(0x0402, 0x5602)}, | 34 | {USB_DEVICE(0x0402, 0x5602)}, |
@@ -404,19 +404,7 @@ static struct usb_driver sd_driver = { | |||
404 | .disconnect = m5602_disconnect | 404 | .disconnect = m5602_disconnect |
405 | }; | 405 | }; |
406 | 406 | ||
407 | /* -- module insert / remove -- */ | 407 | module_usb_driver(sd_driver); |
408 | static int __init mod_m5602_init(void) | ||
409 | { | ||
410 | return usb_register(&sd_driver); | ||
411 | } | ||
412 | |||
413 | static void __exit mod_m5602_exit(void) | ||
414 | { | ||
415 | usb_deregister(&sd_driver); | ||
416 | } | ||
417 | |||
418 | module_init(mod_m5602_init); | ||
419 | module_exit(mod_m5602_exit); | ||
420 | 408 | ||
421 | MODULE_AUTHOR(DRIVER_AUTHOR); | 409 | MODULE_AUTHOR(DRIVER_AUTHOR); |
422 | MODULE_DESCRIPTION(DRIVER_DESC); | 410 | MODULE_DESCRIPTION(DRIVER_DESC); |
diff --git a/drivers/media/video/gspca/m5602/m5602_mt9m111.h b/drivers/media/video/gspca/m5602/m5602_mt9m111.h index b1f0c492036a..8c672b5c8c6a 100644 --- a/drivers/media/video/gspca/m5602/m5602_mt9m111.h +++ b/drivers/media/video/gspca/m5602/m5602_mt9m111.h | |||
@@ -106,7 +106,7 @@ | |||
106 | 106 | ||
107 | /* Kernel module parameters */ | 107 | /* Kernel module parameters */ |
108 | extern int force_sensor; | 108 | extern int force_sensor; |
109 | extern int dump_sensor; | 109 | extern bool dump_sensor; |
110 | 110 | ||
111 | int mt9m111_probe(struct sd *sd); | 111 | int mt9m111_probe(struct sd *sd); |
112 | int mt9m111_init(struct sd *sd); | 112 | int mt9m111_init(struct sd *sd); |
diff --git a/drivers/media/video/gspca/m5602/m5602_ov7660.h b/drivers/media/video/gspca/m5602/m5602_ov7660.h index 2efd607987ec..2b6a13b508f7 100644 --- a/drivers/media/video/gspca/m5602/m5602_ov7660.h +++ b/drivers/media/video/gspca/m5602/m5602_ov7660.h | |||
@@ -86,7 +86,7 @@ | |||
86 | 86 | ||
87 | /* Kernel module parameters */ | 87 | /* Kernel module parameters */ |
88 | extern int force_sensor; | 88 | extern int force_sensor; |
89 | extern int dump_sensor; | 89 | extern bool dump_sensor; |
90 | 90 | ||
91 | int ov7660_probe(struct sd *sd); | 91 | int ov7660_probe(struct sd *sd); |
92 | int ov7660_init(struct sd *sd); | 92 | int ov7660_init(struct sd *sd); |
diff --git a/drivers/media/video/gspca/m5602/m5602_ov9650.h b/drivers/media/video/gspca/m5602/m5602_ov9650.h index da9a129b739d..f7aa5bf68983 100644 --- a/drivers/media/video/gspca/m5602/m5602_ov9650.h +++ b/drivers/media/video/gspca/m5602/m5602_ov9650.h | |||
@@ -135,7 +135,7 @@ | |||
135 | 135 | ||
136 | /* Kernel module parameters */ | 136 | /* Kernel module parameters */ |
137 | extern int force_sensor; | 137 | extern int force_sensor; |
138 | extern int dump_sensor; | 138 | extern bool dump_sensor; |
139 | 139 | ||
140 | int ov9650_probe(struct sd *sd); | 140 | int ov9650_probe(struct sd *sd); |
141 | int ov9650_init(struct sd *sd); | 141 | int ov9650_init(struct sd *sd); |
diff --git a/drivers/media/video/gspca/m5602/m5602_po1030.h b/drivers/media/video/gspca/m5602/m5602_po1030.h index 338359596398..81a2bcb88fe3 100644 --- a/drivers/media/video/gspca/m5602/m5602_po1030.h +++ b/drivers/media/video/gspca/m5602/m5602_po1030.h | |||
@@ -147,7 +147,7 @@ | |||
147 | 147 | ||
148 | /* Kernel module parameters */ | 148 | /* Kernel module parameters */ |
149 | extern int force_sensor; | 149 | extern int force_sensor; |
150 | extern int dump_sensor; | 150 | extern bool dump_sensor; |
151 | 151 | ||
152 | int po1030_probe(struct sd *sd); | 152 | int po1030_probe(struct sd *sd); |
153 | int po1030_init(struct sd *sd); | 153 | int po1030_init(struct sd *sd); |
diff --git a/drivers/media/video/gspca/m5602/m5602_s5k4aa.h b/drivers/media/video/gspca/m5602/m5602_s5k4aa.h index 8cc7a3f6da72..8e0035e731c7 100644 --- a/drivers/media/video/gspca/m5602/m5602_s5k4aa.h +++ b/drivers/media/video/gspca/m5602/m5602_s5k4aa.h | |||
@@ -65,7 +65,7 @@ | |||
65 | 65 | ||
66 | /* Kernel module parameters */ | 66 | /* Kernel module parameters */ |
67 | extern int force_sensor; | 67 | extern int force_sensor; |
68 | extern int dump_sensor; | 68 | extern bool dump_sensor; |
69 | 69 | ||
70 | int s5k4aa_probe(struct sd *sd); | 70 | int s5k4aa_probe(struct sd *sd); |
71 | int s5k4aa_init(struct sd *sd); | 71 | int s5k4aa_init(struct sd *sd); |
diff --git a/drivers/media/video/gspca/m5602/m5602_s5k83a.h b/drivers/media/video/gspca/m5602/m5602_s5k83a.h index 80a63a236e24..79952247b534 100644 --- a/drivers/media/video/gspca/m5602/m5602_s5k83a.h +++ b/drivers/media/video/gspca/m5602/m5602_s5k83a.h | |||
@@ -41,7 +41,7 @@ | |||
41 | 41 | ||
42 | /* Kernel module parameters */ | 42 | /* Kernel module parameters */ |
43 | extern int force_sensor; | 43 | extern int force_sensor; |
44 | extern int dump_sensor; | 44 | extern bool dump_sensor; |
45 | 45 | ||
46 | int s5k83a_probe(struct sd *sd); | 46 | int s5k83a_probe(struct sd *sd); |
47 | int s5k83a_init(struct sd *sd); | 47 | int s5k83a_init(struct sd *sd); |
diff --git a/drivers/media/video/gspca/mars.c b/drivers/media/video/gspca/mars.c index edd32793bb17..b0231465afae 100644 --- a/drivers/media/video/gspca/mars.c +++ b/drivers/media/video/gspca/mars.c | |||
@@ -516,15 +516,4 @@ static struct usb_driver sd_driver = { | |||
516 | #endif | 516 | #endif |
517 | }; | 517 | }; |
518 | 518 | ||
519 | /* -- module insert / remove -- */ | 519 | module_usb_driver(sd_driver); |
520 | static int __init sd_mod_init(void) | ||
521 | { | ||
522 | return usb_register(&sd_driver); | ||
523 | } | ||
524 | static void __exit sd_mod_exit(void) | ||
525 | { | ||
526 | usb_deregister(&sd_driver); | ||
527 | } | ||
528 | |||
529 | module_init(sd_mod_init); | ||
530 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/mr97310a.c b/drivers/media/video/gspca/mr97310a.c index 473e813b680e..d73e5bd3dbf7 100644 --- a/drivers/media/video/gspca/mr97310a.c +++ b/drivers/media/video/gspca/mr97310a.c | |||
@@ -1259,15 +1259,4 @@ static struct usb_driver sd_driver = { | |||
1259 | #endif | 1259 | #endif |
1260 | }; | 1260 | }; |
1261 | 1261 | ||
1262 | /* -- module insert / remove -- */ | 1262 | module_usb_driver(sd_driver); |
1263 | static int __init sd_mod_init(void) | ||
1264 | { | ||
1265 | return usb_register(&sd_driver); | ||
1266 | } | ||
1267 | static void __exit sd_mod_exit(void) | ||
1268 | { | ||
1269 | usb_deregister(&sd_driver); | ||
1270 | } | ||
1271 | |||
1272 | module_init(sd_mod_init); | ||
1273 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/nw80x.c b/drivers/media/video/gspca/nw80x.c index 09f7db8ceffd..7167cac7359c 100644 --- a/drivers/media/video/gspca/nw80x.c +++ b/drivers/media/video/gspca/nw80x.c | |||
@@ -2118,18 +2118,7 @@ static struct usb_driver sd_driver = { | |||
2118 | #endif | 2118 | #endif |
2119 | }; | 2119 | }; |
2120 | 2120 | ||
2121 | /* -- module insert / remove -- */ | 2121 | module_usb_driver(sd_driver); |
2122 | static int __init sd_mod_init(void) | ||
2123 | { | ||
2124 | return usb_register(&sd_driver); | ||
2125 | } | ||
2126 | static void __exit sd_mod_exit(void) | ||
2127 | { | ||
2128 | usb_deregister(&sd_driver); | ||
2129 | } | ||
2130 | |||
2131 | module_init(sd_mod_init); | ||
2132 | module_exit(sd_mod_exit); | ||
2133 | 2122 | ||
2134 | module_param(webcam, int, 0644); | 2123 | module_param(webcam, int, 0644); |
2135 | MODULE_PARM_DESC(webcam, | 2124 | MODULE_PARM_DESC(webcam, |
diff --git a/drivers/media/video/gspca/ov519.c b/drivers/media/video/gspca/ov519.c index 1075668db296..739e8a2a2d30 100644 --- a/drivers/media/video/gspca/ov519.c +++ b/drivers/media/video/gspca/ov519.c | |||
@@ -5055,18 +5055,7 @@ static struct usb_driver sd_driver = { | |||
5055 | #endif | 5055 | #endif |
5056 | }; | 5056 | }; |
5057 | 5057 | ||
5058 | /* -- module insert / remove -- */ | 5058 | module_usb_driver(sd_driver); |
5059 | static int __init sd_mod_init(void) | ||
5060 | { | ||
5061 | return usb_register(&sd_driver); | ||
5062 | } | ||
5063 | static void __exit sd_mod_exit(void) | ||
5064 | { | ||
5065 | usb_deregister(&sd_driver); | ||
5066 | } | ||
5067 | |||
5068 | module_init(sd_mod_init); | ||
5069 | module_exit(sd_mod_exit); | ||
5070 | 5059 | ||
5071 | module_param(frame_rate, int, 0644); | 5060 | module_param(frame_rate, int, 0644); |
5072 | MODULE_PARM_DESC(frame_rate, "Frame rate (5, 10, 15, 20 or 30 fps)"); | 5061 | MODULE_PARM_DESC(frame_rate, "Frame rate (5, 10, 15, 20 or 30 fps)"); |
diff --git a/drivers/media/video/gspca/ov534.c b/drivers/media/video/gspca/ov534.c index 76907eced4a1..04753391de3e 100644 --- a/drivers/media/video/gspca/ov534.c +++ b/drivers/media/video/gspca/ov534.c | |||
@@ -1533,16 +1533,4 @@ static struct usb_driver sd_driver = { | |||
1533 | #endif | 1533 | #endif |
1534 | }; | 1534 | }; |
1535 | 1535 | ||
1536 | /* -- module insert / remove -- */ | 1536 | module_usb_driver(sd_driver); |
1537 | static int __init sd_mod_init(void) | ||
1538 | { | ||
1539 | return usb_register(&sd_driver); | ||
1540 | } | ||
1541 | |||
1542 | static void __exit sd_mod_exit(void) | ||
1543 | { | ||
1544 | usb_deregister(&sd_driver); | ||
1545 | } | ||
1546 | |||
1547 | module_init(sd_mod_init); | ||
1548 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/ov534_9.c b/drivers/media/video/gspca/ov534_9.c index b50c7a3fabfb..fbfa02affa13 100644 --- a/drivers/media/video/gspca/ov534_9.c +++ b/drivers/media/video/gspca/ov534_9.c | |||
@@ -1571,16 +1571,4 @@ static struct usb_driver sd_driver = { | |||
1571 | #endif | 1571 | #endif |
1572 | }; | 1572 | }; |
1573 | 1573 | ||
1574 | /* -- module insert / remove -- */ | 1574 | module_usb_driver(sd_driver); |
1575 | static int __init sd_mod_init(void) | ||
1576 | { | ||
1577 | return usb_register(&sd_driver); | ||
1578 | } | ||
1579 | |||
1580 | static void __exit sd_mod_exit(void) | ||
1581 | { | ||
1582 | usb_deregister(&sd_driver); | ||
1583 | } | ||
1584 | |||
1585 | module_init(sd_mod_init); | ||
1586 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/pac207.c b/drivers/media/video/gspca/pac207.c index 1d95ec8fa952..3844c49f269c 100644 --- a/drivers/media/video/gspca/pac207.c +++ b/drivers/media/video/gspca/pac207.c | |||
@@ -569,15 +569,4 @@ static struct usb_driver sd_driver = { | |||
569 | #endif | 569 | #endif |
570 | }; | 570 | }; |
571 | 571 | ||
572 | /* -- module insert / remove -- */ | 572 | module_usb_driver(sd_driver); |
573 | static int __init sd_mod_init(void) | ||
574 | { | ||
575 | return usb_register(&sd_driver); | ||
576 | } | ||
577 | static void __exit sd_mod_exit(void) | ||
578 | { | ||
579 | usb_deregister(&sd_driver); | ||
580 | } | ||
581 | |||
582 | module_init(sd_mod_init); | ||
583 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/pac7302.c b/drivers/media/video/gspca/pac7302.c index edbc04c5ef58..9db2b34d172c 100644 --- a/drivers/media/video/gspca/pac7302.c +++ b/drivers/media/video/gspca/pac7302.c | |||
@@ -1221,15 +1221,4 @@ static struct usb_driver sd_driver = { | |||
1221 | #endif | 1221 | #endif |
1222 | }; | 1222 | }; |
1223 | 1223 | ||
1224 | /* -- module insert / remove -- */ | 1224 | module_usb_driver(sd_driver); |
1225 | static int __init sd_mod_init(void) | ||
1226 | { | ||
1227 | return usb_register(&sd_driver); | ||
1228 | } | ||
1229 | static void __exit sd_mod_exit(void) | ||
1230 | { | ||
1231 | usb_deregister(&sd_driver); | ||
1232 | } | ||
1233 | |||
1234 | module_init(sd_mod_init); | ||
1235 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/pac7311.c b/drivers/media/video/gspca/pac7311.c index 7509d05dc065..1ac111176ffa 100644 --- a/drivers/media/video/gspca/pac7311.c +++ b/drivers/media/video/gspca/pac7311.c | |||
@@ -868,15 +868,4 @@ static struct usb_driver sd_driver = { | |||
868 | #endif | 868 | #endif |
869 | }; | 869 | }; |
870 | 870 | ||
871 | /* -- module insert / remove -- */ | 871 | module_usb_driver(sd_driver); |
872 | static int __init sd_mod_init(void) | ||
873 | { | ||
874 | return usb_register(&sd_driver); | ||
875 | } | ||
876 | static void __exit sd_mod_exit(void) | ||
877 | { | ||
878 | usb_deregister(&sd_driver); | ||
879 | } | ||
880 | |||
881 | module_init(sd_mod_init); | ||
882 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/se401.c b/drivers/media/video/gspca/se401.c index 6d9835342e0a..bb70092c2229 100644 --- a/drivers/media/video/gspca/se401.c +++ b/drivers/media/video/gspca/se401.c | |||
@@ -774,15 +774,4 @@ static struct usb_driver sd_driver = { | |||
774 | .post_reset = sd_post_reset, | 774 | .post_reset = sd_post_reset, |
775 | }; | 775 | }; |
776 | 776 | ||
777 | /* -- module insert / remove -- */ | 777 | module_usb_driver(sd_driver); |
778 | static int __init sd_mod_init(void) | ||
779 | { | ||
780 | return usb_register(&sd_driver); | ||
781 | } | ||
782 | static void __exit sd_mod_exit(void) | ||
783 | { | ||
784 | usb_deregister(&sd_driver); | ||
785 | } | ||
786 | |||
787 | module_init(sd_mod_init); | ||
788 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/sn9c2028.c b/drivers/media/video/gspca/sn9c2028.c index 48aae3926a33..478533cb1152 100644 --- a/drivers/media/video/gspca/sn9c2028.c +++ b/drivers/media/video/gspca/sn9c2028.c | |||
@@ -737,16 +737,4 @@ static struct usb_driver sd_driver = { | |||
737 | #endif | 737 | #endif |
738 | }; | 738 | }; |
739 | 739 | ||
740 | /* -- module insert / remove -- */ | 740 | module_usb_driver(sd_driver); |
741 | static int __init sd_mod_init(void) | ||
742 | { | ||
743 | return usb_register(&sd_driver); | ||
744 | } | ||
745 | |||
746 | static void __exit sd_mod_exit(void) | ||
747 | { | ||
748 | usb_deregister(&sd_driver); | ||
749 | } | ||
750 | |||
751 | module_init(sd_mod_init); | ||
752 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/sn9c20x.c b/drivers/media/video/gspca/sn9c20x.c index b5fca9166745..9e198b45c3c8 100644 --- a/drivers/media/video/gspca/sn9c20x.c +++ b/drivers/media/video/gspca/sn9c20x.c | |||
@@ -2592,15 +2592,4 @@ static struct usb_driver sd_driver = { | |||
2592 | #endif | 2592 | #endif |
2593 | }; | 2593 | }; |
2594 | 2594 | ||
2595 | /* -- module insert / remove -- */ | 2595 | module_usb_driver(sd_driver); |
2596 | static int __init sd_mod_init(void) | ||
2597 | { | ||
2598 | return usb_register(&sd_driver); | ||
2599 | } | ||
2600 | static void __exit sd_mod_exit(void) | ||
2601 | { | ||
2602 | usb_deregister(&sd_driver); | ||
2603 | } | ||
2604 | |||
2605 | module_init(sd_mod_init); | ||
2606 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/sonixb.c b/drivers/media/video/gspca/sonixb.c index 31f7aba3a883..6a1148d7fe92 100644 --- a/drivers/media/video/gspca/sonixb.c +++ b/drivers/media/video/gspca/sonixb.c | |||
@@ -1530,15 +1530,4 @@ static struct usb_driver sd_driver = { | |||
1530 | #endif | 1530 | #endif |
1531 | }; | 1531 | }; |
1532 | 1532 | ||
1533 | /* -- module insert / remove -- */ | 1533 | module_usb_driver(sd_driver); |
1534 | static int __init sd_mod_init(void) | ||
1535 | { | ||
1536 | return usb_register(&sd_driver); | ||
1537 | } | ||
1538 | static void __exit sd_mod_exit(void) | ||
1539 | { | ||
1540 | usb_deregister(&sd_driver); | ||
1541 | } | ||
1542 | |||
1543 | module_init(sd_mod_init); | ||
1544 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c index c55d6674c1c6..0c9e6ddabd2c 100644 --- a/drivers/media/video/gspca/sonixj.c +++ b/drivers/media/video/gspca/sonixj.c | |||
@@ -3110,15 +3110,4 @@ static struct usb_driver sd_driver = { | |||
3110 | #endif | 3110 | #endif |
3111 | }; | 3111 | }; |
3112 | 3112 | ||
3113 | /* -- module insert / remove -- */ | 3113 | module_usb_driver(sd_driver); |
3114 | static int __init sd_mod_init(void) | ||
3115 | { | ||
3116 | return usb_register(&sd_driver); | ||
3117 | } | ||
3118 | static void __exit sd_mod_exit(void) | ||
3119 | { | ||
3120 | usb_deregister(&sd_driver); | ||
3121 | } | ||
3122 | |||
3123 | module_init(sd_mod_init); | ||
3124 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/spca1528.c b/drivers/media/video/gspca/spca1528.c index 695673106e76..070b9c33b517 100644 --- a/drivers/media/video/gspca/spca1528.c +++ b/drivers/media/video/gspca/spca1528.c | |||
@@ -590,15 +590,4 @@ static struct usb_driver sd_driver = { | |||
590 | #endif | 590 | #endif |
591 | }; | 591 | }; |
592 | 592 | ||
593 | /* -- module insert / remove -- */ | 593 | module_usb_driver(sd_driver); |
594 | static int __init sd_mod_init(void) | ||
595 | { | ||
596 | return usb_register(&sd_driver); | ||
597 | } | ||
598 | static void __exit sd_mod_exit(void) | ||
599 | { | ||
600 | usb_deregister(&sd_driver); | ||
601 | } | ||
602 | |||
603 | module_init(sd_mod_init); | ||
604 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/spca500.c b/drivers/media/video/gspca/spca500.c index bb82c94ece14..103984708c77 100644 --- a/drivers/media/video/gspca/spca500.c +++ b/drivers/media/video/gspca/spca500.c | |||
@@ -1092,15 +1092,4 @@ static struct usb_driver sd_driver = { | |||
1092 | #endif | 1092 | #endif |
1093 | }; | 1093 | }; |
1094 | 1094 | ||
1095 | /* -- module insert / remove -- */ | 1095 | module_usb_driver(sd_driver); |
1096 | static int __init sd_mod_init(void) | ||
1097 | { | ||
1098 | return usb_register(&sd_driver); | ||
1099 | } | ||
1100 | static void __exit sd_mod_exit(void) | ||
1101 | { | ||
1102 | usb_deregister(&sd_driver); | ||
1103 | } | ||
1104 | |||
1105 | module_init(sd_mod_init); | ||
1106 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/spca501.c b/drivers/media/video/gspca/spca501.c index 7aaac72aee91..9c16821addd4 100644 --- a/drivers/media/video/gspca/spca501.c +++ b/drivers/media/video/gspca/spca501.c | |||
@@ -2188,15 +2188,4 @@ static struct usb_driver sd_driver = { | |||
2188 | #endif | 2188 | #endif |
2189 | }; | 2189 | }; |
2190 | 2190 | ||
2191 | /* -- module insert / remove -- */ | 2191 | module_usb_driver(sd_driver); |
2192 | static int __init sd_mod_init(void) | ||
2193 | { | ||
2194 | return usb_register(&sd_driver); | ||
2195 | } | ||
2196 | static void __exit sd_mod_exit(void) | ||
2197 | { | ||
2198 | usb_deregister(&sd_driver); | ||
2199 | } | ||
2200 | |||
2201 | module_init(sd_mod_init); | ||
2202 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/spca505.c b/drivers/media/video/gspca/spca505.c index 16722dc60394..1320f35e39f2 100644 --- a/drivers/media/video/gspca/spca505.c +++ b/drivers/media/video/gspca/spca505.c | |||
@@ -815,15 +815,4 @@ static struct usb_driver sd_driver = { | |||
815 | #endif | 815 | #endif |
816 | }; | 816 | }; |
817 | 817 | ||
818 | /* -- module insert / remove -- */ | 818 | module_usb_driver(sd_driver); |
819 | static int __init sd_mod_init(void) | ||
820 | { | ||
821 | return usb_register(&sd_driver); | ||
822 | } | ||
823 | static void __exit sd_mod_exit(void) | ||
824 | { | ||
825 | usb_deregister(&sd_driver); | ||
826 | } | ||
827 | |||
828 | module_init(sd_mod_init); | ||
829 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/spca506.c b/drivers/media/video/gspca/spca506.c index 89fec4c500af..54eed87672d2 100644 --- a/drivers/media/video/gspca/spca506.c +++ b/drivers/media/video/gspca/spca506.c | |||
@@ -714,21 +714,4 @@ static struct usb_driver sd_driver = { | |||
714 | #endif | 714 | #endif |
715 | }; | 715 | }; |
716 | 716 | ||
717 | /* -- module insert / remove -- */ | 717 | module_usb_driver(sd_driver); |
718 | static int __init sd_mod_init(void) | ||
719 | { | ||
720 | int ret; | ||
721 | ret = usb_register(&sd_driver); | ||
722 | if (ret < 0) | ||
723 | return ret; | ||
724 | PDEBUG(D_PROBE, "registered"); | ||
725 | return 0; | ||
726 | } | ||
727 | static void __exit sd_mod_exit(void) | ||
728 | { | ||
729 | usb_deregister(&sd_driver); | ||
730 | PDEBUG(D_PROBE, "deregistered"); | ||
731 | } | ||
732 | |||
733 | module_init(sd_mod_init); | ||
734 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/spca508.c b/drivers/media/video/gspca/spca508.c index a44fe3d25965..df4e16996461 100644 --- a/drivers/media/video/gspca/spca508.c +++ b/drivers/media/video/gspca/spca508.c | |||
@@ -1544,15 +1544,4 @@ static struct usb_driver sd_driver = { | |||
1544 | #endif | 1544 | #endif |
1545 | }; | 1545 | }; |
1546 | 1546 | ||
1547 | /* -- module insert / remove -- */ | 1547 | module_usb_driver(sd_driver); |
1548 | static int __init sd_mod_init(void) | ||
1549 | { | ||
1550 | return usb_register(&sd_driver); | ||
1551 | } | ||
1552 | static void __exit sd_mod_exit(void) | ||
1553 | { | ||
1554 | usb_deregister(&sd_driver); | ||
1555 | } | ||
1556 | |||
1557 | module_init(sd_mod_init); | ||
1558 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/spca561.c b/drivers/media/video/gspca/spca561.c index 8a6e258abf30..4a5f209ce719 100644 --- a/drivers/media/video/gspca/spca561.c +++ b/drivers/media/video/gspca/spca561.c | |||
@@ -1106,15 +1106,4 @@ static struct usb_driver sd_driver = { | |||
1106 | #endif | 1106 | #endif |
1107 | }; | 1107 | }; |
1108 | 1108 | ||
1109 | /* -- module insert / remove -- */ | 1109 | module_usb_driver(sd_driver); |
1110 | static int __init sd_mod_init(void) | ||
1111 | { | ||
1112 | return usb_register(&sd_driver); | ||
1113 | } | ||
1114 | static void __exit sd_mod_exit(void) | ||
1115 | { | ||
1116 | usb_deregister(&sd_driver); | ||
1117 | } | ||
1118 | |||
1119 | module_init(sd_mod_init); | ||
1120 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/sq905.c b/drivers/media/video/gspca/sq905.c index df805f798282..2fe3c29bd6b7 100644 --- a/drivers/media/video/gspca/sq905.c +++ b/drivers/media/video/gspca/sq905.c | |||
@@ -432,16 +432,4 @@ static struct usb_driver sd_driver = { | |||
432 | #endif | 432 | #endif |
433 | }; | 433 | }; |
434 | 434 | ||
435 | /* -- module insert / remove -- */ | 435 | module_usb_driver(sd_driver); |
436 | static int __init sd_mod_init(void) | ||
437 | { | ||
438 | return usb_register(&sd_driver); | ||
439 | } | ||
440 | |||
441 | static void __exit sd_mod_exit(void) | ||
442 | { | ||
443 | usb_deregister(&sd_driver); | ||
444 | } | ||
445 | |||
446 | module_init(sd_mod_init); | ||
447 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/sq905c.c b/drivers/media/video/gspca/sq905c.c index c2c056056e08..ae783634712f 100644 --- a/drivers/media/video/gspca/sq905c.c +++ b/drivers/media/video/gspca/sq905c.c | |||
@@ -339,16 +339,4 @@ static struct usb_driver sd_driver = { | |||
339 | #endif | 339 | #endif |
340 | }; | 340 | }; |
341 | 341 | ||
342 | /* -- module insert / remove -- */ | 342 | module_usb_driver(sd_driver); |
343 | static int __init sd_mod_init(void) | ||
344 | { | ||
345 | return usb_register(&sd_driver); | ||
346 | } | ||
347 | |||
348 | static void __exit sd_mod_exit(void) | ||
349 | { | ||
350 | usb_deregister(&sd_driver); | ||
351 | } | ||
352 | |||
353 | module_init(sd_mod_init); | ||
354 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/sq930x.c b/drivers/media/video/gspca/sq930x.c index e4255b4905e7..1a8ba9b3550a 100644 --- a/drivers/media/video/gspca/sq930x.c +++ b/drivers/media/video/gspca/sq930x.c | |||
@@ -1197,15 +1197,4 @@ static struct usb_driver sd_driver = { | |||
1197 | #endif | 1197 | #endif |
1198 | }; | 1198 | }; |
1199 | 1199 | ||
1200 | /* -- module insert / remove -- */ | 1200 | module_usb_driver(sd_driver); |
1201 | static int __init sd_mod_init(void) | ||
1202 | { | ||
1203 | return usb_register(&sd_driver); | ||
1204 | } | ||
1205 | static void __exit sd_mod_exit(void) | ||
1206 | { | ||
1207 | usb_deregister(&sd_driver); | ||
1208 | } | ||
1209 | |||
1210 | module_init(sd_mod_init); | ||
1211 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/stk014.c b/drivers/media/video/gspca/stk014.c index 42a7a28a6c8b..4ae7cc8f463a 100644 --- a/drivers/media/video/gspca/stk014.c +++ b/drivers/media/video/gspca/stk014.c | |||
@@ -519,15 +519,4 @@ static struct usb_driver sd_driver = { | |||
519 | #endif | 519 | #endif |
520 | }; | 520 | }; |
521 | 521 | ||
522 | /* -- module insert / remove -- */ | 522 | module_usb_driver(sd_driver); |
523 | static int __init sd_mod_init(void) | ||
524 | { | ||
525 | return usb_register(&sd_driver); | ||
526 | } | ||
527 | static void __exit sd_mod_exit(void) | ||
528 | { | ||
529 | usb_deregister(&sd_driver); | ||
530 | } | ||
531 | |||
532 | module_init(sd_mod_init); | ||
533 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/stv0680.c b/drivers/media/video/gspca/stv0680.c index 4dcc7e37f9fd..461ed645f309 100644 --- a/drivers/media/video/gspca/stv0680.c +++ b/drivers/media/video/gspca/stv0680.c | |||
@@ -355,15 +355,4 @@ static struct usb_driver sd_driver = { | |||
355 | #endif | 355 | #endif |
356 | }; | 356 | }; |
357 | 357 | ||
358 | /* -- module insert / remove -- */ | 358 | module_usb_driver(sd_driver); |
359 | static int __init sd_mod_init(void) | ||
360 | { | ||
361 | return usb_register(&sd_driver); | ||
362 | } | ||
363 | static void __exit sd_mod_exit(void) | ||
364 | { | ||
365 | usb_deregister(&sd_driver); | ||
366 | } | ||
367 | |||
368 | module_init(sd_mod_init); | ||
369 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/stv06xx/stv06xx.c b/drivers/media/video/gspca/stv06xx/stv06xx.c index a1c812abe864..91d99b4cc57b 100644 --- a/drivers/media/video/gspca/stv06xx/stv06xx.c +++ b/drivers/media/video/gspca/stv06xx/stv06xx.c | |||
@@ -36,8 +36,8 @@ MODULE_AUTHOR("Erik Andrén"); | |||
36 | MODULE_DESCRIPTION("STV06XX USB Camera Driver"); | 36 | MODULE_DESCRIPTION("STV06XX USB Camera Driver"); |
37 | MODULE_LICENSE("GPL"); | 37 | MODULE_LICENSE("GPL"); |
38 | 38 | ||
39 | static int dump_bridge; | 39 | static bool dump_bridge; |
40 | static int dump_sensor; | 40 | static bool dump_sensor; |
41 | 41 | ||
42 | int stv06xx_write_bridge(struct sd *sd, u16 address, u16 i2c_data) | 42 | int stv06xx_write_bridge(struct sd *sd, u16 address, u16 i2c_data) |
43 | { | 43 | { |
@@ -612,18 +612,7 @@ static struct usb_driver sd_driver = { | |||
612 | #endif | 612 | #endif |
613 | }; | 613 | }; |
614 | 614 | ||
615 | /* -- module insert / remove -- */ | 615 | module_usb_driver(sd_driver); |
616 | static int __init sd_mod_init(void) | ||
617 | { | ||
618 | return usb_register(&sd_driver); | ||
619 | } | ||
620 | static void __exit sd_mod_exit(void) | ||
621 | { | ||
622 | usb_deregister(&sd_driver); | ||
623 | } | ||
624 | |||
625 | module_init(sd_mod_init); | ||
626 | module_exit(sd_mod_exit); | ||
627 | 616 | ||
628 | module_param(dump_bridge, bool, S_IRUGO | S_IWUSR); | 617 | module_param(dump_bridge, bool, S_IRUGO | S_IWUSR); |
629 | MODULE_PARM_DESC(dump_bridge, "Dumps all usb bridge registers at startup"); | 618 | MODULE_PARM_DESC(dump_bridge, "Dumps all usb bridge registers at startup"); |
diff --git a/drivers/media/video/gspca/sunplus.c b/drivers/media/video/gspca/sunplus.c index c8909772435a..c80f0c0c75b6 100644 --- a/drivers/media/video/gspca/sunplus.c +++ b/drivers/media/video/gspca/sunplus.c | |||
@@ -1211,15 +1211,4 @@ static struct usb_driver sd_driver = { | |||
1211 | #endif | 1211 | #endif |
1212 | }; | 1212 | }; |
1213 | 1213 | ||
1214 | /* -- module insert / remove -- */ | 1214 | module_usb_driver(sd_driver); |
1215 | static int __init sd_mod_init(void) | ||
1216 | { | ||
1217 | return usb_register(&sd_driver); | ||
1218 | } | ||
1219 | static void __exit sd_mod_exit(void) | ||
1220 | { | ||
1221 | usb_deregister(&sd_driver); | ||
1222 | } | ||
1223 | |||
1224 | module_init(sd_mod_init); | ||
1225 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/t613.c b/drivers/media/video/gspca/t613.c index c22d4e810f8d..9b9f85a8e60e 100644 --- a/drivers/media/video/gspca/t613.c +++ b/drivers/media/video/gspca/t613.c | |||
@@ -1463,15 +1463,4 @@ static struct usb_driver sd_driver = { | |||
1463 | #endif | 1463 | #endif |
1464 | }; | 1464 | }; |
1465 | 1465 | ||
1466 | /* -- module insert / remove -- */ | 1466 | module_usb_driver(sd_driver); |
1467 | static int __init sd_mod_init(void) | ||
1468 | { | ||
1469 | return usb_register(&sd_driver); | ||
1470 | } | ||
1471 | static void __exit sd_mod_exit(void) | ||
1472 | { | ||
1473 | usb_deregister(&sd_driver); | ||
1474 | } | ||
1475 | |||
1476 | module_init(sd_mod_init); | ||
1477 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/topro.c b/drivers/media/video/gspca/topro.c index acb209a67100..444d3c5b9079 100644 --- a/drivers/media/video/gspca/topro.c +++ b/drivers/media/video/gspca/topro.c | |||
@@ -4971,18 +4971,7 @@ static struct usb_driver sd_driver = { | |||
4971 | #endif | 4971 | #endif |
4972 | }; | 4972 | }; |
4973 | 4973 | ||
4974 | /* -- module insert / remove -- */ | 4974 | module_usb_driver(sd_driver); |
4975 | static int __init sd_mod_init(void) | ||
4976 | { | ||
4977 | return usb_register(&sd_driver); | ||
4978 | } | ||
4979 | static void __exit sd_mod_exit(void) | ||
4980 | { | ||
4981 | usb_deregister(&sd_driver); | ||
4982 | } | ||
4983 | |||
4984 | module_init(sd_mod_init); | ||
4985 | module_exit(sd_mod_exit); | ||
4986 | 4975 | ||
4987 | module_param(force_sensor, int, 0644); | 4976 | module_param(force_sensor, int, 0644); |
4988 | MODULE_PARM_DESC(force_sensor, | 4977 | MODULE_PARM_DESC(force_sensor, |
diff --git a/drivers/media/video/gspca/tv8532.c b/drivers/media/video/gspca/tv8532.c index 933ef2ca658c..c8922c5ffbf5 100644 --- a/drivers/media/video/gspca/tv8532.c +++ b/drivers/media/video/gspca/tv8532.c | |||
@@ -418,16 +418,4 @@ static struct usb_driver sd_driver = { | |||
418 | #endif | 418 | #endif |
419 | }; | 419 | }; |
420 | 420 | ||
421 | /* -- module insert / remove -- */ | 421 | module_usb_driver(sd_driver); |
422 | static int __init sd_mod_init(void) | ||
423 | { | ||
424 | return usb_register(&sd_driver); | ||
425 | } | ||
426 | |||
427 | static void __exit sd_mod_exit(void) | ||
428 | { | ||
429 | usb_deregister(&sd_driver); | ||
430 | } | ||
431 | |||
432 | module_init(sd_mod_init); | ||
433 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c index 7ee2c8271dcc..208f6b2d512a 100644 --- a/drivers/media/video/gspca/vc032x.c +++ b/drivers/media/video/gspca/vc032x.c | |||
@@ -4230,15 +4230,4 @@ static struct usb_driver sd_driver = { | |||
4230 | #endif | 4230 | #endif |
4231 | }; | 4231 | }; |
4232 | 4232 | ||
4233 | /* -- module insert / remove -- */ | 4233 | module_usb_driver(sd_driver); |
4234 | static int __init sd_mod_init(void) | ||
4235 | { | ||
4236 | return usb_register(&sd_driver); | ||
4237 | } | ||
4238 | static void __exit sd_mod_exit(void) | ||
4239 | { | ||
4240 | usb_deregister(&sd_driver); | ||
4241 | } | ||
4242 | |||
4243 | module_init(sd_mod_init); | ||
4244 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/vicam.c b/drivers/media/video/gspca/vicam.c index 8423ee1c305c..911152e169d6 100644 --- a/drivers/media/video/gspca/vicam.c +++ b/drivers/media/video/gspca/vicam.c | |||
@@ -369,16 +369,4 @@ static struct usb_driver sd_driver = { | |||
369 | #endif | 369 | #endif |
370 | }; | 370 | }; |
371 | 371 | ||
372 | /* -- module insert / remove -- */ | 372 | module_usb_driver(sd_driver); |
373 | static int __init sd_mod_init(void) | ||
374 | { | ||
375 | return usb_register(&sd_driver); | ||
376 | } | ||
377 | |||
378 | static void __exit sd_mod_exit(void) | ||
379 | { | ||
380 | usb_deregister(&sd_driver); | ||
381 | } | ||
382 | |||
383 | module_init(sd_mod_init); | ||
384 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/xirlink_cit.c b/drivers/media/video/gspca/xirlink_cit.c index 3b0e19448cbe..ecada178bceb 100644 --- a/drivers/media/video/gspca/xirlink_cit.c +++ b/drivers/media/video/gspca/xirlink_cit.c | |||
@@ -3323,15 +3323,4 @@ static struct usb_driver sd_driver = { | |||
3323 | #endif | 3323 | #endif |
3324 | }; | 3324 | }; |
3325 | 3325 | ||
3326 | /* -- module insert / remove -- */ | 3326 | module_usb_driver(sd_driver); |
3327 | static int __init sd_mod_init(void) | ||
3328 | { | ||
3329 | return usb_register(&sd_driver); | ||
3330 | } | ||
3331 | static void __exit sd_mod_exit(void) | ||
3332 | { | ||
3333 | usb_deregister(&sd_driver); | ||
3334 | } | ||
3335 | |||
3336 | module_init(sd_mod_init); | ||
3337 | module_exit(sd_mod_exit); | ||
diff --git a/drivers/media/video/gspca/zc3xx.c b/drivers/media/video/gspca/zc3xx.c index f22e02f8d758..b9e15bb0328b 100644 --- a/drivers/media/video/gspca/zc3xx.c +++ b/drivers/media/video/gspca/zc3xx.c | |||
@@ -7033,18 +7033,7 @@ static struct usb_driver sd_driver = { | |||
7033 | #endif | 7033 | #endif |
7034 | }; | 7034 | }; |
7035 | 7035 | ||
7036 | static int __init sd_mod_init(void) | 7036 | module_usb_driver(sd_driver); |
7037 | { | ||
7038 | return usb_register(&sd_driver); | ||
7039 | } | ||
7040 | |||
7041 | static void __exit sd_mod_exit(void) | ||
7042 | { | ||
7043 | usb_deregister(&sd_driver); | ||
7044 | } | ||
7045 | |||
7046 | module_init(sd_mod_init); | ||
7047 | module_exit(sd_mod_exit); | ||
7048 | 7037 | ||
7049 | module_param(force_sensor, int, 0644); | 7038 | module_param(force_sensor, int, 0644); |
7050 | MODULE_PARM_DESC(force_sensor, | 7039 | MODULE_PARM_DESC(force_sensor, |
diff --git a/drivers/media/video/hdpvr/hdpvr-core.c b/drivers/media/video/hdpvr/hdpvr-core.c index 687282d87491..6510110f53d0 100644 --- a/drivers/media/video/hdpvr/hdpvr-core.c +++ b/drivers/media/video/hdpvr/hdpvr-core.c | |||
@@ -49,7 +49,7 @@ module_param(default_audio_input, uint, S_IRUGO|S_IWUSR); | |||
49 | MODULE_PARM_DESC(default_audio_input, "default audio input: 0=RCA back / " | 49 | MODULE_PARM_DESC(default_audio_input, "default audio input: 0=RCA back / " |
50 | "1=RCA front / 2=S/PDIF"); | 50 | "1=RCA front / 2=S/PDIF"); |
51 | 51 | ||
52 | static int boost_audio; | 52 | static bool boost_audio; |
53 | module_param(boost_audio, bool, S_IRUGO|S_IWUSR); | 53 | module_param(boost_audio, bool, S_IRUGO|S_IWUSR); |
54 | MODULE_PARM_DESC(boost_audio, "boost the audio signal"); | 54 | MODULE_PARM_DESC(boost_audio, "boost the audio signal"); |
55 | 55 | ||
@@ -464,26 +464,7 @@ static struct usb_driver hdpvr_usb_driver = { | |||
464 | .id_table = hdpvr_table, | 464 | .id_table = hdpvr_table, |
465 | }; | 465 | }; |
466 | 466 | ||
467 | static int __init hdpvr_init(void) | 467 | module_usb_driver(hdpvr_usb_driver); |
468 | { | ||
469 | int result; | ||
470 | |||
471 | /* register this driver with the USB subsystem */ | ||
472 | result = usb_register(&hdpvr_usb_driver); | ||
473 | if (result) | ||
474 | err("usb_register failed. Error number %d", result); | ||
475 | |||
476 | return result; | ||
477 | } | ||
478 | |||
479 | static void __exit hdpvr_exit(void) | ||
480 | { | ||
481 | /* deregister this driver with the USB subsystem */ | ||
482 | usb_deregister(&hdpvr_usb_driver); | ||
483 | } | ||
484 | |||
485 | module_init(hdpvr_init); | ||
486 | module_exit(hdpvr_exit); | ||
487 | 468 | ||
488 | MODULE_LICENSE("GPL"); | 469 | MODULE_LICENSE("GPL"); |
489 | MODULE_VERSION("0.2.1"); | 470 | MODULE_VERSION("0.2.1"); |
diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c index 461ae449cb43..3949b7dc2368 100644 --- a/drivers/media/video/ivtv/ivtv-driver.c +++ b/drivers/media/video/ivtv/ivtv-driver.c | |||
@@ -99,7 +99,7 @@ static int i2c_clock_period[IVTV_MAX_CARDS] = { -1, -1, -1, -1, -1, -1, -1, -1, | |||
99 | 99 | ||
100 | static unsigned int cardtype_c = 1; | 100 | static unsigned int cardtype_c = 1; |
101 | static unsigned int tuner_c = 1; | 101 | static unsigned int tuner_c = 1; |
102 | static unsigned int radio_c = 1; | 102 | static bool radio_c = 1; |
103 | static unsigned int i2c_clock_period_c = 1; | 103 | static unsigned int i2c_clock_period_c = 1; |
104 | static char pal[] = "---"; | 104 | static char pal[] = "---"; |
105 | static char secam[] = "--"; | 105 | static char secam[] = "--"; |
diff --git a/drivers/media/video/ivtv/ivtvfb.c b/drivers/media/video/ivtv/ivtvfb.c index 6b7c9c823330..d0fbfcf7133d 100644 --- a/drivers/media/video/ivtv/ivtvfb.c +++ b/drivers/media/video/ivtv/ivtvfb.c | |||
@@ -58,7 +58,7 @@ | |||
58 | /* card parameters */ | 58 | /* card parameters */ |
59 | static int ivtvfb_card_id = -1; | 59 | static int ivtvfb_card_id = -1; |
60 | static int ivtvfb_debug = 0; | 60 | static int ivtvfb_debug = 0; |
61 | static int osd_laced; | 61 | static bool osd_laced; |
62 | static int osd_depth; | 62 | static int osd_depth; |
63 | static int osd_upper; | 63 | static int osd_upper; |
64 | static int osd_left; | 64 | static int osd_left; |
diff --git a/drivers/media/video/marvell-ccic/mcam-core.c b/drivers/media/video/marvell-ccic/mcam-core.c index c1f12f96aca6..37d20e73908a 100644 --- a/drivers/media/video/marvell-ccic/mcam-core.c +++ b/drivers/media/video/marvell-ccic/mcam-core.c | |||
@@ -51,7 +51,7 @@ static int delivered; | |||
51 | * sense. | 51 | * sense. |
52 | */ | 52 | */ |
53 | 53 | ||
54 | static int alloc_bufs_at_read; | 54 | static bool alloc_bufs_at_read; |
55 | module_param(alloc_bufs_at_read, bool, 0444); | 55 | module_param(alloc_bufs_at_read, bool, 0444); |
56 | MODULE_PARM_DESC(alloc_bufs_at_read, | 56 | MODULE_PARM_DESC(alloc_bufs_at_read, |
57 | "Non-zero value causes DMA buffers to be allocated when the " | 57 | "Non-zero value causes DMA buffers to be allocated when the " |
@@ -73,11 +73,11 @@ MODULE_PARM_DESC(dma_buf_size, | |||
73 | "parameters require larger buffers, an attempt to reallocate " | 73 | "parameters require larger buffers, an attempt to reallocate " |
74 | "will be made."); | 74 | "will be made."); |
75 | #else /* MCAM_MODE_VMALLOC */ | 75 | #else /* MCAM_MODE_VMALLOC */ |
76 | static const int alloc_bufs_at_read = 0; | 76 | static const bool alloc_bufs_at_read = 0; |
77 | static const int n_dma_bufs = 3; /* Used by S/G_PARM */ | 77 | static const int n_dma_bufs = 3; /* Used by S/G_PARM */ |
78 | #endif /* MCAM_MODE_VMALLOC */ | 78 | #endif /* MCAM_MODE_VMALLOC */ |
79 | 79 | ||
80 | static int flip; | 80 | static bool flip; |
81 | module_param(flip, bool, 0444); | 81 | module_param(flip, bool, 0444); |
82 | MODULE_PARM_DESC(flip, | 82 | MODULE_PARM_DESC(flip, |
83 | "If set, the sensor will be instructed to flip the image " | 83 | "If set, the sensor will be instructed to flip the image " |
diff --git a/drivers/media/video/msp3400-driver.c b/drivers/media/video/msp3400-driver.c index d0f538857285..d7cd0f633f63 100644 --- a/drivers/media/video/msp3400-driver.c +++ b/drivers/media/video/msp3400-driver.c | |||
@@ -69,12 +69,12 @@ MODULE_LICENSE("GPL"); | |||
69 | /* module parameters */ | 69 | /* module parameters */ |
70 | static int opmode = OPMODE_AUTO; | 70 | static int opmode = OPMODE_AUTO; |
71 | int msp_debug; /* msp_debug output */ | 71 | int msp_debug; /* msp_debug output */ |
72 | int msp_once; /* no continuous stereo monitoring */ | 72 | bool msp_once; /* no continuous stereo monitoring */ |
73 | int msp_amsound; /* hard-wire AM sound at 6.5 Hz (france), | 73 | bool msp_amsound; /* hard-wire AM sound at 6.5 Hz (france), |
74 | the autoscan seems work well only with FM... */ | 74 | the autoscan seems work well only with FM... */ |
75 | int msp_standard = 1; /* Override auto detect of audio msp_standard, | 75 | int msp_standard = 1; /* Override auto detect of audio msp_standard, |
76 | if needed. */ | 76 | if needed. */ |
77 | int msp_dolby; | 77 | bool msp_dolby; |
78 | 78 | ||
79 | int msp_stereo_thresh = 0x190; /* a2 threshold for stereo/bilingual | 79 | int msp_stereo_thresh = 0x190; /* a2 threshold for stereo/bilingual |
80 | (msp34xxg only) 0x00a0-0x03c0 */ | 80 | (msp34xxg only) 0x00a0-0x03c0 */ |
diff --git a/drivers/media/video/msp3400-driver.h b/drivers/media/video/msp3400-driver.h index 831e8db4368c..fbe5e0715f93 100644 --- a/drivers/media/video/msp3400-driver.h +++ b/drivers/media/video/msp3400-driver.h | |||
@@ -44,10 +44,10 @@ | |||
44 | 44 | ||
45 | /* module parameters */ | 45 | /* module parameters */ |
46 | extern int msp_debug; | 46 | extern int msp_debug; |
47 | extern int msp_once; | 47 | extern bool msp_once; |
48 | extern int msp_amsound; | 48 | extern bool msp_amsound; |
49 | extern int msp_standard; | 49 | extern int msp_standard; |
50 | extern int msp_dolby; | 50 | extern bool msp_dolby; |
51 | extern int msp_stereo_thresh; | 51 | extern int msp_stereo_thresh; |
52 | 52 | ||
53 | struct msp_state { | 53 | struct msp_state { |
diff --git a/drivers/media/video/mx3_camera.c b/drivers/media/video/mx3_camera.c index 0cb461dd396a..74522773e934 100644 --- a/drivers/media/video/mx3_camera.c +++ b/drivers/media/video/mx3_camera.c | |||
@@ -287,7 +287,7 @@ static void mx3_videobuf_queue(struct vb2_buffer *vb) | |||
287 | sg_dma_len(sg) = new_size; | 287 | sg_dma_len(sg) = new_size; |
288 | 288 | ||
289 | txd = ichan->dma_chan.device->device_prep_slave_sg( | 289 | txd = ichan->dma_chan.device->device_prep_slave_sg( |
290 | &ichan->dma_chan, sg, 1, DMA_FROM_DEVICE, | 290 | &ichan->dma_chan, sg, 1, DMA_DEV_TO_MEM, |
291 | DMA_PREP_INTERRUPT); | 291 | DMA_PREP_INTERRUPT); |
292 | if (!txd) | 292 | if (!txd) |
293 | goto error; | 293 | goto error; |
diff --git a/drivers/media/video/omap/omap_vout.c b/drivers/media/video/omap/omap_vout.c index 1e7c0d6205e6..1fb7d5bd5ec2 100644 --- a/drivers/media/video/omap/omap_vout.c +++ b/drivers/media/video/omap/omap_vout.c | |||
@@ -70,9 +70,9 @@ static u32 video1_numbuffers = 3; | |||
70 | static u32 video2_numbuffers = 3; | 70 | static u32 video2_numbuffers = 3; |
71 | static u32 video1_bufsize = OMAP_VOUT_MAX_BUF_SIZE; | 71 | static u32 video1_bufsize = OMAP_VOUT_MAX_BUF_SIZE; |
72 | static u32 video2_bufsize = OMAP_VOUT_MAX_BUF_SIZE; | 72 | static u32 video2_bufsize = OMAP_VOUT_MAX_BUF_SIZE; |
73 | static u32 vid1_static_vrfb_alloc; | 73 | static bool vid1_static_vrfb_alloc; |
74 | static u32 vid2_static_vrfb_alloc; | 74 | static bool vid2_static_vrfb_alloc; |
75 | static int debug; | 75 | static bool debug; |
76 | 76 | ||
77 | /* Module parameters */ | 77 | /* Module parameters */ |
78 | module_param(video1_numbuffers, uint, S_IRUGO); | 78 | module_param(video1_numbuffers, uint, S_IRUGO); |
@@ -424,7 +424,7 @@ static int omapvid_setup_overlay(struct omap_vout_device *vout, | |||
424 | "%s enable=%d addr=%x width=%d\n height=%d color_mode=%d\n" | 424 | "%s enable=%d addr=%x width=%d\n height=%d color_mode=%d\n" |
425 | "rotation=%d mirror=%d posx=%d posy=%d out_width = %d \n" | 425 | "rotation=%d mirror=%d posx=%d posy=%d out_width = %d \n" |
426 | "out_height=%d rotation_type=%d screen_width=%d\n", | 426 | "out_height=%d rotation_type=%d screen_width=%d\n", |
427 | __func__, info.enabled, info.paddr, info.width, info.height, | 427 | __func__, ovl->is_enabled(ovl), info.paddr, info.width, info.height, |
428 | info.color_mode, info.rotation, info.mirror, info.pos_x, | 428 | info.color_mode, info.rotation, info.mirror, info.pos_x, |
429 | info.pos_y, info.out_width, info.out_height, info.rotation_type, | 429 | info.pos_y, info.out_width, info.out_height, info.rotation_type, |
430 | info.screen_width); | 430 | info.screen_width); |
@@ -948,12 +948,8 @@ static int omap_vout_release(struct file *file) | |||
948 | /* Disable all the overlay managers connected with this interface */ | 948 | /* Disable all the overlay managers connected with this interface */ |
949 | for (i = 0; i < ovid->num_overlays; i++) { | 949 | for (i = 0; i < ovid->num_overlays; i++) { |
950 | struct omap_overlay *ovl = ovid->overlays[i]; | 950 | struct omap_overlay *ovl = ovid->overlays[i]; |
951 | if (ovl->manager && ovl->manager->device) { | 951 | if (ovl->manager && ovl->manager->device) |
952 | struct omap_overlay_info info; | 952 | ovl->disable(ovl); |
953 | ovl->get_overlay_info(ovl, &info); | ||
954 | info.enabled = 0; | ||
955 | ovl->set_overlay_info(ovl, &info); | ||
956 | } | ||
957 | } | 953 | } |
958 | /* Turn off the pipeline */ | 954 | /* Turn off the pipeline */ |
959 | ret = omapvid_apply_changes(vout); | 955 | ret = omapvid_apply_changes(vout); |
@@ -1674,7 +1670,6 @@ static int vidioc_streamon(struct file *file, void *fh, enum v4l2_buf_type i) | |||
1674 | if (ovl->manager && ovl->manager->device) { | 1670 | if (ovl->manager && ovl->manager->device) { |
1675 | struct omap_overlay_info info; | 1671 | struct omap_overlay_info info; |
1676 | ovl->get_overlay_info(ovl, &info); | 1672 | ovl->get_overlay_info(ovl, &info); |
1677 | info.enabled = 1; | ||
1678 | info.paddr = addr; | 1673 | info.paddr = addr; |
1679 | if (ovl->set_overlay_info(ovl, &info)) { | 1674 | if (ovl->set_overlay_info(ovl, &info)) { |
1680 | ret = -EINVAL; | 1675 | ret = -EINVAL; |
@@ -1693,6 +1688,16 @@ static int vidioc_streamon(struct file *file, void *fh, enum v4l2_buf_type i) | |||
1693 | if (ret) | 1688 | if (ret) |
1694 | v4l2_err(&vout->vid_dev->v4l2_dev, "failed to change mode\n"); | 1689 | v4l2_err(&vout->vid_dev->v4l2_dev, "failed to change mode\n"); |
1695 | 1690 | ||
1691 | for (j = 0; j < ovid->num_overlays; j++) { | ||
1692 | struct omap_overlay *ovl = ovid->overlays[j]; | ||
1693 | |||
1694 | if (ovl->manager && ovl->manager->device) { | ||
1695 | ret = ovl->enable(ovl); | ||
1696 | if (ret) | ||
1697 | goto streamon_err1; | ||
1698 | } | ||
1699 | } | ||
1700 | |||
1696 | ret = 0; | 1701 | ret = 0; |
1697 | 1702 | ||
1698 | streamon_err1: | 1703 | streamon_err1: |
@@ -1722,16 +1727,8 @@ static int vidioc_streamoff(struct file *file, void *fh, enum v4l2_buf_type i) | |||
1722 | for (j = 0; j < ovid->num_overlays; j++) { | 1727 | for (j = 0; j < ovid->num_overlays; j++) { |
1723 | struct omap_overlay *ovl = ovid->overlays[j]; | 1728 | struct omap_overlay *ovl = ovid->overlays[j]; |
1724 | 1729 | ||
1725 | if (ovl->manager && ovl->manager->device) { | 1730 | if (ovl->manager && ovl->manager->device) |
1726 | struct omap_overlay_info info; | 1731 | ovl->disable(ovl); |
1727 | |||
1728 | ovl->get_overlay_info(ovl, &info); | ||
1729 | info.enabled = 0; | ||
1730 | ret = ovl->set_overlay_info(ovl, &info); | ||
1731 | if (ret) | ||
1732 | v4l2_err(&vout->vid_dev->v4l2_dev, | ||
1733 | "failed to update overlay info in streamoff\n"); | ||
1734 | } | ||
1735 | } | 1732 | } |
1736 | 1733 | ||
1737 | /* Turn of the pipeline */ | 1734 | /* Turn of the pipeline */ |
diff --git a/drivers/media/video/omap/omap_vout_vrfb.c b/drivers/media/video/omap/omap_vout_vrfb.c index ebebcac49225..4be26abf6cea 100644 --- a/drivers/media/video/omap/omap_vout_vrfb.c +++ b/drivers/media/video/omap/omap_vout_vrfb.c | |||
@@ -84,7 +84,7 @@ void omap_vout_free_vrfb_buffers(struct omap_vout_device *vout) | |||
84 | } | 84 | } |
85 | 85 | ||
86 | int omap_vout_setup_vrfb_bufs(struct platform_device *pdev, int vid_num, | 86 | int omap_vout_setup_vrfb_bufs(struct platform_device *pdev, int vid_num, |
87 | u32 static_vrfb_allocation) | 87 | bool static_vrfb_allocation) |
88 | { | 88 | { |
89 | int ret = 0, i, j; | 89 | int ret = 0, i, j; |
90 | struct omap_vout_device *vout; | 90 | struct omap_vout_device *vout; |
diff --git a/drivers/media/video/omap3isp/isp.c b/drivers/media/video/omap3isp/isp.c index faf1650e8747..12d5f923e1d0 100644 --- a/drivers/media/video/omap3isp/isp.c +++ b/drivers/media/video/omap3isp/isp.c | |||
@@ -80,13 +80,6 @@ | |||
80 | #include "isph3a.h" | 80 | #include "isph3a.h" |
81 | #include "isphist.h" | 81 | #include "isphist.h" |
82 | 82 | ||
83 | /* | ||
84 | * this is provided as an interim solution until omap3isp doesn't need | ||
85 | * any omap-specific iommu API | ||
86 | */ | ||
87 | #define to_iommu(dev) \ | ||
88 | (struct omap_iommu *)platform_get_drvdata(to_platform_device(dev)) | ||
89 | |||
90 | static unsigned int autoidle; | 83 | static unsigned int autoidle; |
91 | module_param(autoidle, int, 0444); | 84 | module_param(autoidle, int, 0444); |
92 | MODULE_PARM_DESC(autoidle, "Enable OMAP3ISP AUTOIDLE support"); | 85 | MODULE_PARM_DESC(autoidle, "Enable OMAP3ISP AUTOIDLE support"); |
@@ -1119,8 +1112,7 @@ isp_restore_context(struct isp_device *isp, struct isp_reg *reg_list) | |||
1119 | static void isp_save_ctx(struct isp_device *isp) | 1112 | static void isp_save_ctx(struct isp_device *isp) |
1120 | { | 1113 | { |
1121 | isp_save_context(isp, isp_reg_list); | 1114 | isp_save_context(isp, isp_reg_list); |
1122 | if (isp->iommu) | 1115 | omap_iommu_save_ctx(isp->dev); |
1123 | omap_iommu_save_ctx(isp->iommu); | ||
1124 | } | 1116 | } |
1125 | 1117 | ||
1126 | /* | 1118 | /* |
@@ -1133,8 +1125,7 @@ static void isp_save_ctx(struct isp_device *isp) | |||
1133 | static void isp_restore_ctx(struct isp_device *isp) | 1125 | static void isp_restore_ctx(struct isp_device *isp) |
1134 | { | 1126 | { |
1135 | isp_restore_context(isp, isp_reg_list); | 1127 | isp_restore_context(isp, isp_reg_list); |
1136 | if (isp->iommu) | 1128 | omap_iommu_restore_ctx(isp->dev); |
1137 | omap_iommu_restore_ctx(isp->iommu); | ||
1138 | omap3isp_ccdc_restore_context(isp); | 1129 | omap3isp_ccdc_restore_context(isp); |
1139 | omap3isp_preview_restore_context(isp); | 1130 | omap3isp_preview_restore_context(isp); |
1140 | } | 1131 | } |
@@ -1988,7 +1979,7 @@ static int isp_remove(struct platform_device *pdev) | |||
1988 | isp_cleanup_modules(isp); | 1979 | isp_cleanup_modules(isp); |
1989 | 1980 | ||
1990 | omap3isp_get(isp); | 1981 | omap3isp_get(isp); |
1991 | iommu_detach_device(isp->domain, isp->iommu_dev); | 1982 | iommu_detach_device(isp->domain, &pdev->dev); |
1992 | iommu_domain_free(isp->domain); | 1983 | iommu_domain_free(isp->domain); |
1993 | omap3isp_put(isp); | 1984 | omap3isp_put(isp); |
1994 | 1985 | ||
@@ -2136,17 +2127,6 @@ static int isp_probe(struct platform_device *pdev) | |||
2136 | } | 2127 | } |
2137 | } | 2128 | } |
2138 | 2129 | ||
2139 | /* IOMMU */ | ||
2140 | isp->iommu_dev = omap_find_iommu_device("isp"); | ||
2141 | if (!isp->iommu_dev) { | ||
2142 | dev_err(isp->dev, "omap_find_iommu_device failed\n"); | ||
2143 | ret = -ENODEV; | ||
2144 | goto error_isp; | ||
2145 | } | ||
2146 | |||
2147 | /* to be removed once iommu migration is complete */ | ||
2148 | isp->iommu = to_iommu(isp->iommu_dev); | ||
2149 | |||
2150 | isp->domain = iommu_domain_alloc(pdev->dev.bus); | 2130 | isp->domain = iommu_domain_alloc(pdev->dev.bus); |
2151 | if (!isp->domain) { | 2131 | if (!isp->domain) { |
2152 | dev_err(isp->dev, "can't alloc iommu domain\n"); | 2132 | dev_err(isp->dev, "can't alloc iommu domain\n"); |
@@ -2154,7 +2134,7 @@ static int isp_probe(struct platform_device *pdev) | |||
2154 | goto error_isp; | 2134 | goto error_isp; |
2155 | } | 2135 | } |
2156 | 2136 | ||
2157 | ret = iommu_attach_device(isp->domain, isp->iommu_dev); | 2137 | ret = iommu_attach_device(isp->domain, &pdev->dev); |
2158 | if (ret) { | 2138 | if (ret) { |
2159 | dev_err(&pdev->dev, "can't attach iommu device: %d\n", ret); | 2139 | dev_err(&pdev->dev, "can't attach iommu device: %d\n", ret); |
2160 | goto free_domain; | 2140 | goto free_domain; |
@@ -2193,7 +2173,7 @@ error_modules: | |||
2193 | error_irq: | 2173 | error_irq: |
2194 | free_irq(isp->irq_num, isp); | 2174 | free_irq(isp->irq_num, isp); |
2195 | detach_dev: | 2175 | detach_dev: |
2196 | iommu_detach_device(isp->domain, isp->iommu_dev); | 2176 | iommu_detach_device(isp->domain, &pdev->dev); |
2197 | free_domain: | 2177 | free_domain: |
2198 | iommu_domain_free(isp->domain); | 2178 | iommu_domain_free(isp->domain); |
2199 | error_isp: | 2179 | error_isp: |
diff --git a/drivers/media/video/omap3isp/isp.h b/drivers/media/video/omap3isp/isp.h index 705946ef4d60..d96603eb0d17 100644 --- a/drivers/media/video/omap3isp/isp.h +++ b/drivers/media/video/omap3isp/isp.h | |||
@@ -212,9 +212,7 @@ struct isp_device { | |||
212 | unsigned int sbl_resources; | 212 | unsigned int sbl_resources; |
213 | unsigned int subclk_resources; | 213 | unsigned int subclk_resources; |
214 | 214 | ||
215 | struct omap_iommu *iommu; | ||
216 | struct iommu_domain *domain; | 215 | struct iommu_domain *domain; |
217 | struct device *iommu_dev; | ||
218 | 216 | ||
219 | struct isp_platform_callback platform_cb; | 217 | struct isp_platform_callback platform_cb; |
220 | }; | 218 | }; |
diff --git a/drivers/media/video/omap3isp/ispccdc.c b/drivers/media/video/omap3isp/ispccdc.c index ec62d11d678b..eaabc27f0fa2 100644 --- a/drivers/media/video/omap3isp/ispccdc.c +++ b/drivers/media/video/omap3isp/ispccdc.c | |||
@@ -366,7 +366,7 @@ static void ccdc_lsc_free_request(struct isp_ccdc_device *ccdc, | |||
366 | dma_unmap_sg(isp->dev, req->iovm->sgt->sgl, | 366 | dma_unmap_sg(isp->dev, req->iovm->sgt->sgl, |
367 | req->iovm->sgt->nents, DMA_TO_DEVICE); | 367 | req->iovm->sgt->nents, DMA_TO_DEVICE); |
368 | if (req->table) | 368 | if (req->table) |
369 | omap_iommu_vfree(isp->domain, isp->iommu, req->table); | 369 | omap_iommu_vfree(isp->domain, isp->dev, req->table); |
370 | kfree(req); | 370 | kfree(req); |
371 | } | 371 | } |
372 | 372 | ||
@@ -438,7 +438,7 @@ static int ccdc_lsc_config(struct isp_ccdc_device *ccdc, | |||
438 | 438 | ||
439 | req->enable = 1; | 439 | req->enable = 1; |
440 | 440 | ||
441 | req->table = omap_iommu_vmalloc(isp->domain, isp->iommu, 0, | 441 | req->table = omap_iommu_vmalloc(isp->domain, isp->dev, 0, |
442 | req->config.size, IOMMU_FLAG); | 442 | req->config.size, IOMMU_FLAG); |
443 | if (IS_ERR_VALUE(req->table)) { | 443 | if (IS_ERR_VALUE(req->table)) { |
444 | req->table = 0; | 444 | req->table = 0; |
@@ -446,7 +446,7 @@ static int ccdc_lsc_config(struct isp_ccdc_device *ccdc, | |||
446 | goto done; | 446 | goto done; |
447 | } | 447 | } |
448 | 448 | ||
449 | req->iovm = omap_find_iovm_area(isp->iommu, req->table); | 449 | req->iovm = omap_find_iovm_area(isp->dev, req->table); |
450 | if (req->iovm == NULL) { | 450 | if (req->iovm == NULL) { |
451 | ret = -ENOMEM; | 451 | ret = -ENOMEM; |
452 | goto done; | 452 | goto done; |
@@ -462,7 +462,7 @@ static int ccdc_lsc_config(struct isp_ccdc_device *ccdc, | |||
462 | dma_sync_sg_for_cpu(isp->dev, req->iovm->sgt->sgl, | 462 | dma_sync_sg_for_cpu(isp->dev, req->iovm->sgt->sgl, |
463 | req->iovm->sgt->nents, DMA_TO_DEVICE); | 463 | req->iovm->sgt->nents, DMA_TO_DEVICE); |
464 | 464 | ||
465 | table = omap_da_to_va(isp->iommu, req->table); | 465 | table = omap_da_to_va(isp->dev, req->table); |
466 | if (copy_from_user(table, config->lsc, req->config.size)) { | 466 | if (copy_from_user(table, config->lsc, req->config.size)) { |
467 | ret = -EFAULT; | 467 | ret = -EFAULT; |
468 | goto done; | 468 | goto done; |
@@ -734,15 +734,15 @@ static int ccdc_config(struct isp_ccdc_device *ccdc, | |||
734 | * already done by omap_iommu_vmalloc(). | 734 | * already done by omap_iommu_vmalloc(). |
735 | */ | 735 | */ |
736 | size = ccdc->fpc.fpnum * 4; | 736 | size = ccdc->fpc.fpnum * 4; |
737 | table_new = omap_iommu_vmalloc(isp->domain, isp->iommu, | 737 | table_new = omap_iommu_vmalloc(isp->domain, isp->dev, |
738 | 0, size, IOMMU_FLAG); | 738 | 0, size, IOMMU_FLAG); |
739 | if (IS_ERR_VALUE(table_new)) | 739 | if (IS_ERR_VALUE(table_new)) |
740 | return -ENOMEM; | 740 | return -ENOMEM; |
741 | 741 | ||
742 | if (copy_from_user(omap_da_to_va(isp->iommu, table_new), | 742 | if (copy_from_user(omap_da_to_va(isp->dev, table_new), |
743 | (__force void __user *) | 743 | (__force void __user *) |
744 | ccdc->fpc.fpcaddr, size)) { | 744 | ccdc->fpc.fpcaddr, size)) { |
745 | omap_iommu_vfree(isp->domain, isp->iommu, | 745 | omap_iommu_vfree(isp->domain, isp->dev, |
746 | table_new); | 746 | table_new); |
747 | return -EFAULT; | 747 | return -EFAULT; |
748 | } | 748 | } |
@@ -753,7 +753,7 @@ static int ccdc_config(struct isp_ccdc_device *ccdc, | |||
753 | 753 | ||
754 | ccdc_configure_fpc(ccdc); | 754 | ccdc_configure_fpc(ccdc); |
755 | if (table_old != 0) | 755 | if (table_old != 0) |
756 | omap_iommu_vfree(isp->domain, isp->iommu, table_old); | 756 | omap_iommu_vfree(isp->domain, isp->dev, table_old); |
757 | } | 757 | } |
758 | 758 | ||
759 | return ccdc_lsc_config(ccdc, ccdc_struct); | 759 | return ccdc_lsc_config(ccdc, ccdc_struct); |
@@ -2309,7 +2309,7 @@ void omap3isp_ccdc_cleanup(struct isp_device *isp) | |||
2309 | ccdc_lsc_free_queue(ccdc, &ccdc->lsc.free_queue); | 2309 | ccdc_lsc_free_queue(ccdc, &ccdc->lsc.free_queue); |
2310 | 2310 | ||
2311 | if (ccdc->fpc.fpcaddr != 0) | 2311 | if (ccdc->fpc.fpcaddr != 0) |
2312 | omap_iommu_vfree(isp->domain, isp->iommu, ccdc->fpc.fpcaddr); | 2312 | omap_iommu_vfree(isp->domain, isp->dev, ccdc->fpc.fpcaddr); |
2313 | 2313 | ||
2314 | mutex_destroy(&ccdc->ioctl_lock); | 2314 | mutex_destroy(&ccdc->ioctl_lock); |
2315 | } | 2315 | } |
diff --git a/drivers/media/video/omap3isp/ispstat.c b/drivers/media/video/omap3isp/ispstat.c index bc0b2c7349b9..11871ecc6d25 100644 --- a/drivers/media/video/omap3isp/ispstat.c +++ b/drivers/media/video/omap3isp/ispstat.c | |||
@@ -366,7 +366,7 @@ static void isp_stat_bufs_free(struct ispstat *stat) | |||
366 | dma_unmap_sg(isp->dev, buf->iovm->sgt->sgl, | 366 | dma_unmap_sg(isp->dev, buf->iovm->sgt->sgl, |
367 | buf->iovm->sgt->nents, | 367 | buf->iovm->sgt->nents, |
368 | DMA_FROM_DEVICE); | 368 | DMA_FROM_DEVICE); |
369 | omap_iommu_vfree(isp->domain, isp->iommu, | 369 | omap_iommu_vfree(isp->domain, isp->dev, |
370 | buf->iommu_addr); | 370 | buf->iommu_addr); |
371 | } else { | 371 | } else { |
372 | if (!buf->virt_addr) | 372 | if (!buf->virt_addr) |
@@ -400,7 +400,7 @@ static int isp_stat_bufs_alloc_iommu(struct ispstat *stat, unsigned int size) | |||
400 | struct iovm_struct *iovm; | 400 | struct iovm_struct *iovm; |
401 | 401 | ||
402 | WARN_ON(buf->dma_addr); | 402 | WARN_ON(buf->dma_addr); |
403 | buf->iommu_addr = omap_iommu_vmalloc(isp->domain, isp->iommu, 0, | 403 | buf->iommu_addr = omap_iommu_vmalloc(isp->domain, isp->dev, 0, |
404 | size, IOMMU_FLAG); | 404 | size, IOMMU_FLAG); |
405 | if (IS_ERR((void *)buf->iommu_addr)) { | 405 | if (IS_ERR((void *)buf->iommu_addr)) { |
406 | dev_err(stat->isp->dev, | 406 | dev_err(stat->isp->dev, |
@@ -410,7 +410,7 @@ static int isp_stat_bufs_alloc_iommu(struct ispstat *stat, unsigned int size) | |||
410 | return -ENOMEM; | 410 | return -ENOMEM; |
411 | } | 411 | } |
412 | 412 | ||
413 | iovm = omap_find_iovm_area(isp->iommu, buf->iommu_addr); | 413 | iovm = omap_find_iovm_area(isp->dev, buf->iommu_addr); |
414 | if (!iovm || | 414 | if (!iovm || |
415 | !dma_map_sg(isp->dev, iovm->sgt->sgl, iovm->sgt->nents, | 415 | !dma_map_sg(isp->dev, iovm->sgt->sgl, iovm->sgt->nents, |
416 | DMA_FROM_DEVICE)) { | 416 | DMA_FROM_DEVICE)) { |
@@ -419,7 +419,7 @@ static int isp_stat_bufs_alloc_iommu(struct ispstat *stat, unsigned int size) | |||
419 | } | 419 | } |
420 | buf->iovm = iovm; | 420 | buf->iovm = iovm; |
421 | 421 | ||
422 | buf->virt_addr = omap_da_to_va(stat->isp->iommu, | 422 | buf->virt_addr = omap_da_to_va(stat->isp->dev, |
423 | (u32)buf->iommu_addr); | 423 | (u32)buf->iommu_addr); |
424 | buf->empty = 1; | 424 | buf->empty = 1; |
425 | dev_dbg(stat->isp->dev, "%s: buffer[%d] allocated." | 425 | dev_dbg(stat->isp->dev, "%s: buffer[%d] allocated." |
diff --git a/drivers/media/video/omap3isp/ispvideo.c b/drivers/media/video/omap3isp/ispvideo.c index 615dae58942b..b02070057724 100644 --- a/drivers/media/video/omap3isp/ispvideo.c +++ b/drivers/media/video/omap3isp/ispvideo.c | |||
@@ -453,7 +453,7 @@ ispmmu_vmap(struct isp_device *isp, const struct scatterlist *sglist, int sglen) | |||
453 | sgt->nents = sglen; | 453 | sgt->nents = sglen; |
454 | sgt->orig_nents = sglen; | 454 | sgt->orig_nents = sglen; |
455 | 455 | ||
456 | da = omap_iommu_vmap(isp->domain, isp->iommu, 0, sgt, IOMMU_FLAG); | 456 | da = omap_iommu_vmap(isp->domain, isp->dev, 0, sgt, IOMMU_FLAG); |
457 | if (IS_ERR_VALUE(da)) | 457 | if (IS_ERR_VALUE(da)) |
458 | kfree(sgt); | 458 | kfree(sgt); |
459 | 459 | ||
@@ -469,7 +469,7 @@ static void ispmmu_vunmap(struct isp_device *isp, dma_addr_t da) | |||
469 | { | 469 | { |
470 | struct sg_table *sgt; | 470 | struct sg_table *sgt; |
471 | 471 | ||
472 | sgt = omap_iommu_vunmap(isp->domain, isp->iommu, (u32)da); | 472 | sgt = omap_iommu_vunmap(isp->domain, isp->dev, (u32)da); |
473 | kfree(sgt); | 473 | kfree(sgt); |
474 | } | 474 | } |
475 | 475 | ||
diff --git a/drivers/media/video/ov7670.c b/drivers/media/video/ov7670.c index 8aa058531280..6a564964853a 100644 --- a/drivers/media/video/ov7670.c +++ b/drivers/media/video/ov7670.c | |||
@@ -25,7 +25,7 @@ MODULE_AUTHOR("Jonathan Corbet <corbet@lwn.net>"); | |||
25 | MODULE_DESCRIPTION("A low-level driver for OmniVision ov7670 sensors"); | 25 | MODULE_DESCRIPTION("A low-level driver for OmniVision ov7670 sensors"); |
26 | MODULE_LICENSE("GPL"); | 26 | MODULE_LICENSE("GPL"); |
27 | 27 | ||
28 | static int debug; | 28 | static bool debug; |
29 | module_param(debug, bool, 0644); | 29 | module_param(debug, bool, 0644); |
30 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); | 30 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); |
31 | 31 | ||
diff --git a/drivers/media/video/s2255drv.c b/drivers/media/video/s2255drv.c index 803c9c82e496..c1bef6187661 100644 --- a/drivers/media/video/s2255drv.c +++ b/drivers/media/video/s2255drv.c | |||
@@ -2682,25 +2682,7 @@ static struct usb_driver s2255_driver = { | |||
2682 | .id_table = s2255_table, | 2682 | .id_table = s2255_table, |
2683 | }; | 2683 | }; |
2684 | 2684 | ||
2685 | static int __init usb_s2255_init(void) | 2685 | module_usb_driver(s2255_driver); |
2686 | { | ||
2687 | int result; | ||
2688 | /* register this driver with the USB subsystem */ | ||
2689 | result = usb_register(&s2255_driver); | ||
2690 | if (result) | ||
2691 | pr_err(KBUILD_MODNAME | ||
2692 | ": usb_register failed. Error number %d\n", result); | ||
2693 | dprintk(2, "%s\n", __func__); | ||
2694 | return result; | ||
2695 | } | ||
2696 | |||
2697 | static void __exit usb_s2255_exit(void) | ||
2698 | { | ||
2699 | usb_deregister(&s2255_driver); | ||
2700 | } | ||
2701 | |||
2702 | module_init(usb_s2255_init); | ||
2703 | module_exit(usb_s2255_exit); | ||
2704 | 2686 | ||
2705 | MODULE_DESCRIPTION("Sensoray 2255 Video for Linux driver"); | 2687 | MODULE_DESCRIPTION("Sensoray 2255 Video for Linux driver"); |
2706 | MODULE_AUTHOR("Dean Anderson (Sensoray Company Inc.)"); | 2688 | MODULE_AUTHOR("Dean Anderson (Sensoray Company Inc.)"); |
diff --git a/drivers/media/video/saa7115.c b/drivers/media/video/saa7115.c index 5cfdbc78b918..0ef5484696b6 100644 --- a/drivers/media/video/saa7115.c +++ b/drivers/media/video/saa7115.c | |||
@@ -57,7 +57,7 @@ MODULE_AUTHOR( "Maxim Yevtyushkin, Kevin Thayer, Chris Kennedy, " | |||
57 | "Hans Verkuil, Mauro Carvalho Chehab"); | 57 | "Hans Verkuil, Mauro Carvalho Chehab"); |
58 | MODULE_LICENSE("GPL"); | 58 | MODULE_LICENSE("GPL"); |
59 | 59 | ||
60 | static int debug; | 60 | static bool debug; |
61 | module_param(debug, bool, 0644); | 61 | module_param(debug, bool, 0644); |
62 | 62 | ||
63 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); | 63 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); |
diff --git a/drivers/media/video/sn9c102/sn9c102_core.c b/drivers/media/video/sn9c102/sn9c102_core.c index 16cb07c5c27b..c2882fa5be85 100644 --- a/drivers/media/video/sn9c102/sn9c102_core.c +++ b/drivers/media/video/sn9c102/sn9c102_core.c | |||
@@ -75,8 +75,8 @@ MODULE_PARM_DESC(video_nr, | |||
75 | "\none and for every other camera." | 75 | "\none and for every other camera." |
76 | "\n"); | 76 | "\n"); |
77 | 77 | ||
78 | static short force_munmap[] = {[0 ... SN9C102_MAX_DEVICES-1] = | 78 | static bool force_munmap[] = {[0 ... SN9C102_MAX_DEVICES-1] = |
79 | SN9C102_FORCE_MUNMAP}; | 79 | SN9C102_FORCE_MUNMAP}; |
80 | module_param_array(force_munmap, bool, NULL, 0444); | 80 | module_param_array(force_munmap, bool, NULL, 0444); |
81 | MODULE_PARM_DESC(force_munmap, | 81 | MODULE_PARM_DESC(force_munmap, |
82 | " <0|1[,...]>" | 82 | " <0|1[,...]>" |
@@ -3420,27 +3420,4 @@ static struct usb_driver sn9c102_usb_driver = { | |||
3420 | .disconnect = sn9c102_usb_disconnect, | 3420 | .disconnect = sn9c102_usb_disconnect, |
3421 | }; | 3421 | }; |
3422 | 3422 | ||
3423 | /*****************************************************************************/ | 3423 | module_usb_driver(sn9c102_usb_driver); |
3424 | |||
3425 | static int __init sn9c102_module_init(void) | ||
3426 | { | ||
3427 | int err = 0; | ||
3428 | |||
3429 | KDBG(2, SN9C102_MODULE_NAME " v" SN9C102_MODULE_VERSION); | ||
3430 | KDBG(3, SN9C102_MODULE_AUTHOR); | ||
3431 | |||
3432 | if ((err = usb_register(&sn9c102_usb_driver))) | ||
3433 | KDBG(1, "usb_register() failed"); | ||
3434 | |||
3435 | return err; | ||
3436 | } | ||
3437 | |||
3438 | |||
3439 | static void __exit sn9c102_module_exit(void) | ||
3440 | { | ||
3441 | usb_deregister(&sn9c102_usb_driver); | ||
3442 | } | ||
3443 | |||
3444 | |||
3445 | module_init(sn9c102_module_init); | ||
3446 | module_exit(sn9c102_module_exit); | ||
diff --git a/drivers/media/video/stk-webcam.c b/drivers/media/video/stk-webcam.c index dba2317ba5b9..d427f8436c70 100644 --- a/drivers/media/video/stk-webcam.c +++ b/drivers/media/video/stk-webcam.c | |||
@@ -38,11 +38,11 @@ | |||
38 | #include "stk-webcam.h" | 38 | #include "stk-webcam.h" |
39 | 39 | ||
40 | 40 | ||
41 | static int hflip = 1; | 41 | static bool hflip = 1; |
42 | module_param(hflip, bool, 0444); | 42 | module_param(hflip, bool, 0444); |
43 | MODULE_PARM_DESC(hflip, "Horizontal image flip (mirror). Defaults to 1"); | 43 | MODULE_PARM_DESC(hflip, "Horizontal image flip (mirror). Defaults to 1"); |
44 | 44 | ||
45 | static int vflip = 1; | 45 | static bool vflip = 1; |
46 | module_param(vflip, bool, 0444); | 46 | module_param(vflip, bool, 0444); |
47 | MODULE_PARM_DESC(vflip, "Vertical image flip. Defaults to 1"); | 47 | MODULE_PARM_DESC(vflip, "Vertical image flip. Defaults to 1"); |
48 | 48 | ||
@@ -1377,25 +1377,4 @@ static struct usb_driver stk_camera_driver = { | |||
1377 | #endif | 1377 | #endif |
1378 | }; | 1378 | }; |
1379 | 1379 | ||
1380 | 1380 | module_usb_driver(stk_camera_driver); | |
1381 | static int __init stk_camera_init(void) | ||
1382 | { | ||
1383 | int result; | ||
1384 | |||
1385 | result = usb_register(&stk_camera_driver); | ||
1386 | if (result) | ||
1387 | STK_ERROR("usb_register failed ! Error number %d\n", result); | ||
1388 | |||
1389 | |||
1390 | return result; | ||
1391 | } | ||
1392 | |||
1393 | static void __exit stk_camera_exit(void) | ||
1394 | { | ||
1395 | usb_deregister(&stk_camera_driver); | ||
1396 | } | ||
1397 | |||
1398 | module_init(stk_camera_init); | ||
1399 | module_exit(stk_camera_exit); | ||
1400 | |||
1401 | |||
diff --git a/drivers/media/video/timblogiw.c b/drivers/media/video/timblogiw.c index 0a2d75f04066..4ed1c7c28ae7 100644 --- a/drivers/media/video/timblogiw.c +++ b/drivers/media/video/timblogiw.c | |||
@@ -565,7 +565,7 @@ static void buffer_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb) | |||
565 | spin_unlock_irq(&fh->queue_lock); | 565 | spin_unlock_irq(&fh->queue_lock); |
566 | 566 | ||
567 | desc = fh->chan->device->device_prep_slave_sg(fh->chan, | 567 | desc = fh->chan->device->device_prep_slave_sg(fh->chan, |
568 | buf->sg, sg_elems, DMA_FROM_DEVICE, | 568 | buf->sg, sg_elems, DMA_DEV_TO_MEM, |
569 | DMA_PREP_INTERRUPT | DMA_COMPL_SKIP_SRC_UNMAP); | 569 | DMA_PREP_INTERRUPT | DMA_COMPL_SKIP_SRC_UNMAP); |
570 | if (!desc) { | 570 | if (!desc) { |
571 | spin_lock_irq(&fh->queue_lock); | 571 | spin_lock_irq(&fh->queue_lock); |
diff --git a/drivers/media/video/tm6000/tm6000-alsa.c b/drivers/media/video/tm6000/tm6000-alsa.c index ddffd67c0d82..bd07ec707956 100644 --- a/drivers/media/video/tm6000/tm6000-alsa.c +++ b/drivers/media/video/tm6000/tm6000-alsa.c | |||
@@ -42,7 +42,7 @@ | |||
42 | 42 | ||
43 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 43 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
44 | 44 | ||
45 | static int enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1}; | 45 | static bool enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1}; |
46 | 46 | ||
47 | module_param_array(enable, bool, NULL, 0444); | 47 | module_param_array(enable, bool, NULL, 0444); |
48 | MODULE_PARM_DESC(enable, "Enable tm6000x soundcard. default enabled."); | 48 | MODULE_PARM_DESC(enable, "Enable tm6000x soundcard. default enabled."); |
diff --git a/drivers/media/video/tm6000/tm6000-cards.c b/drivers/media/video/tm6000/tm6000-cards.c index 3678918821b0..034659b13174 100644 --- a/drivers/media/video/tm6000/tm6000-cards.c +++ b/drivers/media/video/tm6000/tm6000-cards.c | |||
@@ -1406,31 +1406,7 @@ static struct usb_driver tm6000_usb_driver = { | |||
1406 | .id_table = tm6000_id_table, | 1406 | .id_table = tm6000_id_table, |
1407 | }; | 1407 | }; |
1408 | 1408 | ||
1409 | static int __init tm6000_module_init(void) | 1409 | module_usb_driver(tm6000_usb_driver); |
1410 | { | ||
1411 | int result; | ||
1412 | |||
1413 | printk(KERN_INFO "tm6000" " v4l2 driver version %d.%d.%d loaded\n", | ||
1414 | (TM6000_VERSION >> 16) & 0xff, | ||
1415 | (TM6000_VERSION >> 8) & 0xff, TM6000_VERSION & 0xff); | ||
1416 | |||
1417 | /* register this driver with the USB subsystem */ | ||
1418 | result = usb_register(&tm6000_usb_driver); | ||
1419 | if (result) | ||
1420 | printk(KERN_ERR "tm6000" | ||
1421 | " usb_register failed. Error number %d.\n", result); | ||
1422 | |||
1423 | return result; | ||
1424 | } | ||
1425 | |||
1426 | static void __exit tm6000_module_exit(void) | ||
1427 | { | ||
1428 | /* deregister at USB subsystem */ | ||
1429 | usb_deregister(&tm6000_usb_driver); | ||
1430 | } | ||
1431 | |||
1432 | module_init(tm6000_module_init); | ||
1433 | module_exit(tm6000_module_exit); | ||
1434 | 1410 | ||
1435 | MODULE_DESCRIPTION("Trident TVMaster TM5600/TM6000/TM6010 USB2 adapter"); | 1411 | MODULE_DESCRIPTION("Trident TVMaster TM5600/TM6000/TM6010 USB2 adapter"); |
1436 | MODULE_AUTHOR("Mauro Carvalho Chehab"); | 1412 | MODULE_AUTHOR("Mauro Carvalho Chehab"); |
diff --git a/drivers/media/video/tvp514x.c b/drivers/media/video/tvp514x.c index 926f03931156..dd26cacd0556 100644 --- a/drivers/media/video/tvp514x.c +++ b/drivers/media/video/tvp514x.c | |||
@@ -52,7 +52,7 @@ | |||
52 | #define LOCK_RETRY_DELAY (200) | 52 | #define LOCK_RETRY_DELAY (200) |
53 | 53 | ||
54 | /* Debug functions */ | 54 | /* Debug functions */ |
55 | static int debug; | 55 | static bool debug; |
56 | module_param(debug, bool, 0644); | 56 | module_param(debug, bool, 0644); |
57 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); | 57 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); |
58 | 58 | ||
diff --git a/drivers/media/video/tvp7002.c b/drivers/media/video/tvp7002.c index 7875e80cb2ff..236c559d5f51 100644 --- a/drivers/media/video/tvp7002.c +++ b/drivers/media/video/tvp7002.c | |||
@@ -63,7 +63,7 @@ MODULE_LICENSE("GPL"); | |||
63 | #define TVP7002_CL_MASK 0x0f | 63 | #define TVP7002_CL_MASK 0x0f |
64 | 64 | ||
65 | /* Debug functions */ | 65 | /* Debug functions */ |
66 | static int debug; | 66 | static bool debug; |
67 | module_param(debug, bool, 0644); | 67 | module_param(debug, bool, 0644); |
68 | MODULE_PARM_DESC(debug, "Debug level (0-2)"); | 68 | MODULE_PARM_DESC(debug, "Debug level (0-2)"); |
69 | 69 | ||
diff --git a/drivers/media/video/upd64083.c b/drivers/media/video/upd64083.c index 9bbe61700fd5..65d065aa6091 100644 --- a/drivers/media/video/upd64083.c +++ b/drivers/media/video/upd64083.c | |||
@@ -34,7 +34,7 @@ MODULE_DESCRIPTION("uPD64083 driver"); | |||
34 | MODULE_AUTHOR("T. Adachi, Takeru KOMORIYA, Hans Verkuil"); | 34 | MODULE_AUTHOR("T. Adachi, Takeru KOMORIYA, Hans Verkuil"); |
35 | MODULE_LICENSE("GPL"); | 35 | MODULE_LICENSE("GPL"); |
36 | 36 | ||
37 | static int debug; | 37 | static bool debug; |
38 | module_param(debug, bool, 0644); | 38 | module_param(debug, bool, 0644); |
39 | 39 | ||
40 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); | 40 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); |
diff --git a/drivers/media/video/via-camera.c b/drivers/media/video/via-camera.c index 7e2c34ed0564..20f7237b8242 100644 --- a/drivers/media/video/via-camera.c +++ b/drivers/media/video/via-camera.c | |||
@@ -34,13 +34,13 @@ MODULE_AUTHOR("Jonathan Corbet <corbet@lwn.net>"); | |||
34 | MODULE_DESCRIPTION("VIA framebuffer-based camera controller driver"); | 34 | MODULE_DESCRIPTION("VIA framebuffer-based camera controller driver"); |
35 | MODULE_LICENSE("GPL"); | 35 | MODULE_LICENSE("GPL"); |
36 | 36 | ||
37 | static int flip_image; | 37 | static bool flip_image; |
38 | module_param(flip_image, bool, 0444); | 38 | module_param(flip_image, bool, 0444); |
39 | MODULE_PARM_DESC(flip_image, | 39 | MODULE_PARM_DESC(flip_image, |
40 | "If set, the sensor will be instructed to flip the image " | 40 | "If set, the sensor will be instructed to flip the image " |
41 | "vertically."); | 41 | "vertically."); |
42 | 42 | ||
43 | static int override_serial; | 43 | static bool override_serial; |
44 | module_param(override_serial, bool, 0444); | 44 | module_param(override_serial, bool, 0444); |
45 | MODULE_PARM_DESC(override_serial, | 45 | MODULE_PARM_DESC(override_serial, |
46 | "The camera driver will normally refuse to load if " | 46 | "The camera driver will normally refuse to load if " |
diff --git a/drivers/media/video/zoran/zoran_device.c b/drivers/media/video/zoran/zoran_device.c index e8a27844bf39..e86173bd1327 100644 --- a/drivers/media/video/zoran/zoran_device.c +++ b/drivers/media/video/zoran/zoran_device.c | |||
@@ -57,7 +57,7 @@ | |||
57 | ZR36057_ISR_GIRQ1 | \ | 57 | ZR36057_ISR_GIRQ1 | \ |
58 | ZR36057_ISR_JPEGRepIRQ ) | 58 | ZR36057_ISR_JPEGRepIRQ ) |
59 | 59 | ||
60 | static int lml33dpath; /* default = 0 | 60 | static bool lml33dpath; /* default = 0 |
61 | * 1 will use digital path in capture | 61 | * 1 will use digital path in capture |
62 | * mode instead of analog. It can be | 62 | * mode instead of analog. It can be |
63 | * used for picture adjustments using | 63 | * used for picture adjustments using |
diff --git a/drivers/media/video/zoran/zoran_driver.c b/drivers/media/video/zoran/zoran_driver.c index f7d236a2402a..4c09ab781ec3 100644 --- a/drivers/media/video/zoran/zoran_driver.c +++ b/drivers/media/video/zoran/zoran_driver.c | |||
@@ -1550,7 +1550,7 @@ static int zoran_enum_fmt(struct zoran *zr, struct v4l2_fmtdesc *fmt, int flag) | |||
1550 | if (zoran_formats[i].flags & flag && num++ == fmt->index) { | 1550 | if (zoran_formats[i].flags & flag && num++ == fmt->index) { |
1551 | strncpy(fmt->description, zoran_formats[i].name, | 1551 | strncpy(fmt->description, zoran_formats[i].name, |
1552 | sizeof(fmt->description) - 1); | 1552 | sizeof(fmt->description) - 1); |
1553 | /* fmt struct pre-zeroed, so adding '\0' not neeed */ | 1553 | /* fmt struct pre-zeroed, so adding '\0' not needed */ |
1554 | fmt->pixelformat = zoran_formats[i].fourcc; | 1554 | fmt->pixelformat = zoran_formats[i].fourcc; |
1555 | if (zoran_formats[i].flags & ZORAN_FORMAT_COMPRESSED) | 1555 | if (zoran_formats[i].flags & ZORAN_FORMAT_COMPRESSED) |
1556 | fmt->flags |= V4L2_FMT_FLAG_COMPRESSED; | 1556 | fmt->flags |= V4L2_FMT_FLAG_COMPRESSED; |
diff --git a/drivers/media/video/zoran/zr36060.c b/drivers/media/video/zoran/zr36060.c index 5e4f57cbf314..f08546fe2234 100644 --- a/drivers/media/video/zoran/zr36060.c +++ b/drivers/media/video/zoran/zr36060.c | |||
@@ -50,7 +50,7 @@ | |||
50 | /* amount of chips attached via this driver */ | 50 | /* amount of chips attached via this driver */ |
51 | static int zr36060_codecs; | 51 | static int zr36060_codecs; |
52 | 52 | ||
53 | static int low_bitrate; | 53 | static bool low_bitrate; |
54 | module_param(low_bitrate, bool, 0); | 54 | module_param(low_bitrate, bool, 0); |
55 | MODULE_PARM_DESC(low_bitrate, "Buz compatibility option, halves bitrate"); | 55 | MODULE_PARM_DESC(low_bitrate, "Buz compatibility option, halves bitrate"); |
56 | 56 | ||
diff --git a/drivers/media/video/zr364xx.c b/drivers/media/video/zr364xx.c index e78cf94f491e..cd2e39fc4bf0 100644 --- a/drivers/media/video/zr364xx.c +++ b/drivers/media/video/zr364xx.c | |||
@@ -1695,28 +1695,7 @@ static struct usb_driver zr364xx_driver = { | |||
1695 | .id_table = device_table | 1695 | .id_table = device_table |
1696 | }; | 1696 | }; |
1697 | 1697 | ||
1698 | 1698 | module_usb_driver(zr364xx_driver); | |
1699 | static int __init zr364xx_init(void) | ||
1700 | { | ||
1701 | int retval; | ||
1702 | retval = usb_register(&zr364xx_driver); | ||
1703 | if (retval) | ||
1704 | printk(KERN_ERR KBUILD_MODNAME ": usb_register failed!\n"); | ||
1705 | else | ||
1706 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_DESC "\n"); | ||
1707 | return retval; | ||
1708 | } | ||
1709 | |||
1710 | |||
1711 | static void __exit zr364xx_exit(void) | ||
1712 | { | ||
1713 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_DESC " module unloaded\n"); | ||
1714 | usb_deregister(&zr364xx_driver); | ||
1715 | } | ||
1716 | |||
1717 | |||
1718 | module_init(zr364xx_init); | ||
1719 | module_exit(zr364xx_exit); | ||
1720 | 1699 | ||
1721 | MODULE_AUTHOR(DRIVER_AUTHOR); | 1700 | MODULE_AUTHOR(DRIVER_AUTHOR); |
1722 | MODULE_DESCRIPTION(DRIVER_DESC); | 1701 | MODULE_DESCRIPTION(DRIVER_DESC); |