aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2005-11-26 14:28:06 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-01-06 01:16:21 -0500
commit8a9947552d43b0d20d5fa23ac0ba435d526be454 (patch)
tree086844a62f549e488ebeecc196e1d4726a1d4598 /drivers/media/video
parentff179c8cf5caa17bf3d407edbb5872aa2eee6900 (diff)
[PATCH] i2c: Drop i2c_driver.flags, 2 of 3
Just about every i2c chip driver sets the I2C_DF_NOTIFY flag, so we can simply make it the default and drop the flag. If any driver really doesn't want to be notified when i2c adapters are added, that driver can simply omit to set .attach_adapter. This approach is also more robust as it prevents accidental NULL pointer dereferences. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/adv7170.c1
-rw-r--r--drivers/media/video/adv7175.c1
-rw-r--r--drivers/media/video/bt819.c1
-rw-r--r--drivers/media/video/bt832.c1
-rw-r--r--drivers/media/video/bt856.c1
-rw-r--r--drivers/media/video/cs53l32a.c1
-rw-r--r--drivers/media/video/cx25840/cx25840-core.c1
-rw-r--r--drivers/media/video/indycam.c1
-rw-r--r--drivers/media/video/ir-kbd-i2c.c1
-rw-r--r--drivers/media/video/msp3400.c1
-rw-r--r--drivers/media/video/ovcamchip/ovcamchip_core.c1
-rw-r--r--drivers/media/video/saa5246a.c1
-rw-r--r--drivers/media/video/saa5249.c1
-rw-r--r--drivers/media/video/saa6588.c1
-rw-r--r--drivers/media/video/saa7110.c1
-rw-r--r--drivers/media/video/saa7111.c1
-rw-r--r--drivers/media/video/saa7114.c1
-rw-r--r--drivers/media/video/saa7115.c1
-rw-r--r--drivers/media/video/saa711x.c1
-rw-r--r--drivers/media/video/saa7127.c1
-rw-r--r--drivers/media/video/saa7134/saa6752hs.c1
-rw-r--r--drivers/media/video/saa7185.c1
-rw-r--r--drivers/media/video/saa7191.c1
-rw-r--r--drivers/media/video/tda7432.c1
-rw-r--r--drivers/media/video/tda9840.c1
-rw-r--r--drivers/media/video/tda9875.c1
-rw-r--r--drivers/media/video/tda9887.c1
-rw-r--r--drivers/media/video/tea6415c.c1
-rw-r--r--drivers/media/video/tea6420.c1
-rw-r--r--drivers/media/video/tuner-3036.c1
-rw-r--r--drivers/media/video/tuner-core.c1
-rw-r--r--drivers/media/video/tvaudio.c1
-rw-r--r--drivers/media/video/tveeprom.c1
-rw-r--r--drivers/media/video/tvmixer.c1
-rw-r--r--drivers/media/video/tvp5150.c1
-rw-r--r--drivers/media/video/vpx3220.c1
-rw-r--r--drivers/media/video/wm8775.c1
37 files changed, 0 insertions, 37 deletions
diff --git a/drivers/media/video/adv7170.c b/drivers/media/video/adv7170.c
index 1ca2b67aedfb..c4f2265167a2 100644
--- a/drivers/media/video/adv7170.c
+++ b/drivers/media/video/adv7170.c
@@ -502,7 +502,6 @@ static struct i2c_driver i2c_driver_adv7170 = {
502 .name = "adv7170", /* name */ 502 .name = "adv7170", /* name */
503 503
504 .id = I2C_DRIVERID_ADV7170, 504 .id = I2C_DRIVERID_ADV7170,
505 .flags = I2C_DF_NOTIFY,
506 505
507 .attach_adapter = adv7170_attach_adapter, 506 .attach_adapter = adv7170_attach_adapter,
508 .detach_client = adv7170_detach_client, 507 .detach_client = adv7170_detach_client,
diff --git a/drivers/media/video/adv7175.c b/drivers/media/video/adv7175.c
index 173bca1e0295..4fc08b17d4d0 100644
--- a/drivers/media/video/adv7175.c
+++ b/drivers/media/video/adv7175.c
@@ -552,7 +552,6 @@ static struct i2c_driver i2c_driver_adv7175 = {
552 .name = "adv7175", /* name */ 552 .name = "adv7175", /* name */
553 553
554 .id = I2C_DRIVERID_ADV7175, 554 .id = I2C_DRIVERID_ADV7175,
555 .flags = I2C_DF_NOTIFY,
556 555
557 .attach_adapter = adv7175_attach_adapter, 556 .attach_adapter = adv7175_attach_adapter,
558 .detach_client = adv7175_detach_client, 557 .detach_client = adv7175_detach_client,
diff --git a/drivers/media/video/bt819.c b/drivers/media/video/bt819.c
index 3ee0afca76a7..7bba69793b78 100644
--- a/drivers/media/video/bt819.c
+++ b/drivers/media/video/bt819.c
@@ -627,7 +627,6 @@ static struct i2c_driver i2c_driver_bt819 = {
627 .name = "bt819", 627 .name = "bt819",
628 628
629 .id = I2C_DRIVERID_BT819, 629 .id = I2C_DRIVERID_BT819,
630 .flags = I2C_DF_NOTIFY,
631 630
632 .attach_adapter = bt819_attach_adapter, 631 .attach_adapter = bt819_attach_adapter,
633 .detach_client = bt819_detach_client, 632 .detach_client = bt819_detach_client,
diff --git a/drivers/media/video/bt832.c b/drivers/media/video/bt832.c
index 3ca1d768bfd3..0ba8652357e2 100644
--- a/drivers/media/video/bt832.c
+++ b/drivers/media/video/bt832.c
@@ -233,7 +233,6 @@ static struct i2c_driver driver = {
233 .owner = THIS_MODULE, 233 .owner = THIS_MODULE,
234 .name = "i2c bt832 driver", 234 .name = "i2c bt832 driver",
235 .id = -1, /* FIXME */ 235 .id = -1, /* FIXME */
236 .flags = I2C_DF_NOTIFY,
237 .attach_adapter = bt832_probe, 236 .attach_adapter = bt832_probe,
238 .detach_client = bt832_detach, 237 .detach_client = bt832_detach,
239 .command = bt832_command, 238 .command = bt832_command,
diff --git a/drivers/media/video/bt856.c b/drivers/media/video/bt856.c
index 8eb871d0e85b..4c9acd1e2c70 100644
--- a/drivers/media/video/bt856.c
+++ b/drivers/media/video/bt856.c
@@ -409,7 +409,6 @@ static struct i2c_driver i2c_driver_bt856 = {
409 .name = "bt856", 409 .name = "bt856",
410 410
411 .id = I2C_DRIVERID_BT856, 411 .id = I2C_DRIVERID_BT856,
412 .flags = I2C_DF_NOTIFY,
413 412
414 .attach_adapter = bt856_attach_adapter, 413 .attach_adapter = bt856_attach_adapter,
415 .detach_client = bt856_detach_client, 414 .detach_client = bt856_detach_client,
diff --git a/drivers/media/video/cs53l32a.c b/drivers/media/video/cs53l32a.c
index 780b352ec119..fce5d89b7b15 100644
--- a/drivers/media/video/cs53l32a.c
+++ b/drivers/media/video/cs53l32a.c
@@ -218,7 +218,6 @@ static int cs53l32a_detach(struct i2c_client *client)
218static struct i2c_driver i2c_driver = { 218static struct i2c_driver i2c_driver = {
219 .name = "cs53l32a", 219 .name = "cs53l32a",
220 .id = I2C_DRIVERID_CS53L32A, 220 .id = I2C_DRIVERID_CS53L32A,
221 .flags = I2C_DF_NOTIFY,
222 .attach_adapter = cs53l32a_probe, 221 .attach_adapter = cs53l32a_probe,
223 .detach_client = cs53l32a_detach, 222 .detach_client = cs53l32a_detach,
224 .command = cs53l32a_command, 223 .command = cs53l32a_command,
diff --git a/drivers/media/video/cx25840/cx25840-core.c b/drivers/media/video/cx25840/cx25840-core.c
index 5b93723a1768..c66bc147ee71 100644
--- a/drivers/media/video/cx25840/cx25840-core.c
+++ b/drivers/media/video/cx25840/cx25840-core.c
@@ -847,7 +847,6 @@ static struct i2c_driver i2c_driver_cx25840 = {
847 .name = "cx25840", 847 .name = "cx25840",
848 848
849 .id = I2C_DRIVERID_CX25840, 849 .id = I2C_DRIVERID_CX25840,
850 .flags = I2C_DF_NOTIFY,
851 850
852 .attach_adapter = cx25840_attach_adapter, 851 .attach_adapter = cx25840_attach_adapter,
853 .detach_client = cx25840_detach_client, 852 .detach_client = cx25840_detach_client,
diff --git a/drivers/media/video/indycam.c b/drivers/media/video/indycam.c
index deeef125eb92..3eba514cdb29 100644
--- a/drivers/media/video/indycam.c
+++ b/drivers/media/video/indycam.c
@@ -454,7 +454,6 @@ static struct i2c_driver i2c_driver_indycam = {
454 .owner = THIS_MODULE, 454 .owner = THIS_MODULE,
455 .name = "indycam", 455 .name = "indycam",
456 .id = I2C_DRIVERID_INDYCAM, 456 .id = I2C_DRIVERID_INDYCAM,
457 .flags = I2C_DF_NOTIFY,
458 .attach_adapter = indycam_probe, 457 .attach_adapter = indycam_probe,
459 .detach_client = indycam_detach, 458 .detach_client = indycam_detach,
460 .command = indycam_command, 459 .command = indycam_command,
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c
index 740e543311af..2e2f78a4afc8 100644
--- a/drivers/media/video/ir-kbd-i2c.c
+++ b/drivers/media/video/ir-kbd-i2c.c
@@ -280,7 +280,6 @@ static int ir_probe(struct i2c_adapter *adap);
280static struct i2c_driver driver = { 280static struct i2c_driver driver = {
281 .name = "ir remote kbd driver", 281 .name = "ir remote kbd driver",
282 .id = I2C_DRIVERID_INFRARED, 282 .id = I2C_DRIVERID_INFRARED,
283 .flags = I2C_DF_NOTIFY,
284 .attach_adapter = ir_probe, 283 .attach_adapter = ir_probe,
285 .detach_client = ir_detach, 284 .detach_client = ir_detach,
286}; 285};
diff --git a/drivers/media/video/msp3400.c b/drivers/media/video/msp3400.c
index d86f8e92e534..46328fb6fe80 100644
--- a/drivers/media/video/msp3400.c
+++ b/drivers/media/video/msp3400.c
@@ -1564,7 +1564,6 @@ static struct i2c_driver driver = {
1564 .owner = THIS_MODULE, 1564 .owner = THIS_MODULE,
1565 .name = "msp3400", 1565 .name = "msp3400",
1566 .id = I2C_DRIVERID_MSP3400, 1566 .id = I2C_DRIVERID_MSP3400,
1567 .flags = I2C_DF_NOTIFY,
1568 .attach_adapter = msp_probe, 1567 .attach_adapter = msp_probe,
1569 .detach_client = msp_detach, 1568 .detach_client = msp_detach,
1570 .command = msp_command, 1569 .command = msp_command,
diff --git a/drivers/media/video/ovcamchip/ovcamchip_core.c b/drivers/media/video/ovcamchip/ovcamchip_core.c
index 2de34ebf0673..390d0d6c7838 100644
--- a/drivers/media/video/ovcamchip/ovcamchip_core.c
+++ b/drivers/media/video/ovcamchip/ovcamchip_core.c
@@ -414,7 +414,6 @@ static struct i2c_driver driver = {
414 .name = "ovcamchip", 414 .name = "ovcamchip",
415 .id = I2C_DRIVERID_OVCAMCHIP, 415 .id = I2C_DRIVERID_OVCAMCHIP,
416 .class = I2C_CLASS_CAM_DIGITAL, 416 .class = I2C_CLASS_CAM_DIGITAL,
417 .flags = I2C_DF_NOTIFY,
418 .attach_adapter = ovcamchip_attach, 417 .attach_adapter = ovcamchip_attach,
419 .detach_client = ovcamchip_detach, 418 .detach_client = ovcamchip_detach,
420 .command = ovcamchip_command, 419 .command = ovcamchip_command,
diff --git a/drivers/media/video/saa5246a.c b/drivers/media/video/saa5246a.c
index b8054da31ffd..9bf686989aab 100644
--- a/drivers/media/video/saa5246a.c
+++ b/drivers/media/video/saa5246a.c
@@ -166,7 +166,6 @@ static struct i2c_driver i2c_driver_videotext =
166 .owner = THIS_MODULE, 166 .owner = THIS_MODULE,
167 .name = IF_NAME, /* name */ 167 .name = IF_NAME, /* name */
168 .id = I2C_DRIVERID_SAA5249, /* in i2c.h */ 168 .id = I2C_DRIVERID_SAA5249, /* in i2c.h */
169 .flags = I2C_DF_NOTIFY,
170 .attach_adapter = saa5246a_probe, 169 .attach_adapter = saa5246a_probe,
171 .detach_client = saa5246a_detach, 170 .detach_client = saa5246a_detach,
172 .command = saa5246a_command 171 .command = saa5246a_command
diff --git a/drivers/media/video/saa5249.c b/drivers/media/video/saa5249.c
index 7ffa2e9a9bf3..811e86396030 100644
--- a/drivers/media/video/saa5249.c
+++ b/drivers/media/video/saa5249.c
@@ -239,7 +239,6 @@ static struct i2c_driver i2c_driver_videotext =
239 .owner = THIS_MODULE, 239 .owner = THIS_MODULE,
240 .name = IF_NAME, /* name */ 240 .name = IF_NAME, /* name */
241 .id = I2C_DRIVERID_SAA5249, /* in i2c.h */ 241 .id = I2C_DRIVERID_SAA5249, /* in i2c.h */
242 .flags = I2C_DF_NOTIFY,
243 .attach_adapter = saa5249_probe, 242 .attach_adapter = saa5249_probe,
244 .detach_client = saa5249_detach, 243 .detach_client = saa5249_detach,
245 .command = saa5249_command 244 .command = saa5249_command
diff --git a/drivers/media/video/saa6588.c b/drivers/media/video/saa6588.c
index 923322503e8f..18a0b7143e8b 100644
--- a/drivers/media/video/saa6588.c
+++ b/drivers/media/video/saa6588.c
@@ -498,7 +498,6 @@ static struct i2c_driver driver = {
498 .owner = THIS_MODULE, 498 .owner = THIS_MODULE,
499 .name = "i2c saa6588 driver", 499 .name = "i2c saa6588 driver",
500 .id = -1, /* FIXME */ 500 .id = -1, /* FIXME */
501 .flags = I2C_DF_NOTIFY,
502 .attach_adapter = saa6588_probe, 501 .attach_adapter = saa6588_probe,
503 .detach_client = saa6588_detach, 502 .detach_client = saa6588_detach,
504 .command = saa6588_command, 503 .command = saa6588_command,
diff --git a/drivers/media/video/saa7110.c b/drivers/media/video/saa7110.c
index e116bdbed310..f266b35ceb35 100644
--- a/drivers/media/video/saa7110.c
+++ b/drivers/media/video/saa7110.c
@@ -591,7 +591,6 @@ static struct i2c_driver i2c_driver_saa7110 = {
591 .name = "saa7110", 591 .name = "saa7110",
592 592
593 .id = I2C_DRIVERID_SAA7110, 593 .id = I2C_DRIVERID_SAA7110,
594 .flags = I2C_DF_NOTIFY,
595 594
596 .attach_adapter = saa7110_attach_adapter, 595 .attach_adapter = saa7110_attach_adapter,
597 .detach_client = saa7110_detach_client, 596 .detach_client = saa7110_detach_client,
diff --git a/drivers/media/video/saa7111.c b/drivers/media/video/saa7111.c
index fe8a5e453969..687beaf11adc 100644
--- a/drivers/media/video/saa7111.c
+++ b/drivers/media/video/saa7111.c
@@ -594,7 +594,6 @@ static struct i2c_driver i2c_driver_saa7111 = {
594 .name = "saa7111", 594 .name = "saa7111",
595 595
596 .id = I2C_DRIVERID_SAA7111A, 596 .id = I2C_DRIVERID_SAA7111A,
597 .flags = I2C_DF_NOTIFY,
598 597
599 .attach_adapter = saa7111_attach_adapter, 598 .attach_adapter = saa7111_attach_adapter,
600 .detach_client = saa7111_detach_client, 599 .detach_client = saa7111_detach_client,
diff --git a/drivers/media/video/saa7114.c b/drivers/media/video/saa7114.c
index d9f50e2f7b92..4748cf0598c0 100644
--- a/drivers/media/video/saa7114.c
+++ b/drivers/media/video/saa7114.c
@@ -1208,7 +1208,6 @@ static struct i2c_driver i2c_driver_saa7114 = {
1208 .name = "saa7114", 1208 .name = "saa7114",
1209 1209
1210 .id = I2C_DRIVERID_SAA7114, 1210 .id = I2C_DRIVERID_SAA7114,
1211 .flags = I2C_DF_NOTIFY,
1212 1211
1213 .attach_adapter = saa7114_attach_adapter, 1212 .attach_adapter = saa7114_attach_adapter,
1214 .detach_client = saa7114_detach_client, 1213 .detach_client = saa7114_detach_client,
diff --git a/drivers/media/video/saa7115.c b/drivers/media/video/saa7115.c
index e717e30d8187..b1079de938b7 100644
--- a/drivers/media/video/saa7115.c
+++ b/drivers/media/video/saa7115.c
@@ -1356,7 +1356,6 @@ static int saa7115_detach(struct i2c_client *client)
1356static struct i2c_driver i2c_driver_saa7115 = { 1356static struct i2c_driver i2c_driver_saa7115 = {
1357 .name = "saa7115", 1357 .name = "saa7115",
1358 .id = I2C_DRIVERID_SAA711X, 1358 .id = I2C_DRIVERID_SAA711X,
1359 .flags = I2C_DF_NOTIFY,
1360 .attach_adapter = saa7115_probe, 1359 .attach_adapter = saa7115_probe,
1361 .detach_client = saa7115_detach, 1360 .detach_client = saa7115_detach,
1362 .command = saa7115_command, 1361 .command = saa7115_command,
diff --git a/drivers/media/video/saa711x.c b/drivers/media/video/saa711x.c
index 31f7b950b01c..734a70919080 100644
--- a/drivers/media/video/saa711x.c
+++ b/drivers/media/video/saa711x.c
@@ -569,7 +569,6 @@ static struct i2c_driver i2c_driver_saa711x = {
569 .name = "saa711x", 569 .name = "saa711x",
570 570
571 .id = I2C_DRIVERID_SAA711X, 571 .id = I2C_DRIVERID_SAA711X,
572 .flags = I2C_DF_NOTIFY,
573 572
574 .attach_adapter = saa711x_attach_adapter, 573 .attach_adapter = saa711x_attach_adapter,
575 .detach_client = saa711x_detach_client, 574 .detach_client = saa711x_detach_client,
diff --git a/drivers/media/video/saa7127.c b/drivers/media/video/saa7127.c
index c36f014f1fdf..a2fab9837507 100644
--- a/drivers/media/video/saa7127.c
+++ b/drivers/media/video/saa7127.c
@@ -821,7 +821,6 @@ static int saa7127_detach(struct i2c_client *client)
821static struct i2c_driver i2c_driver_saa7127 = { 821static struct i2c_driver i2c_driver_saa7127 = {
822 .name = "saa7127", 822 .name = "saa7127",
823 .id = I2C_DRIVERID_SAA7127, 823 .id = I2C_DRIVERID_SAA7127,
824 .flags = I2C_DF_NOTIFY,
825 .attach_adapter = saa7127_probe, 824 .attach_adapter = saa7127_probe,
826 .detach_client = saa7127_detach, 825 .detach_client = saa7127_detach,
827 .command = saa7127_command, 826 .command = saa7127_command,
diff --git a/drivers/media/video/saa7134/saa6752hs.c b/drivers/media/video/saa7134/saa6752hs.c
index a61d24f588f7..6fc298e0a03a 100644
--- a/drivers/media/video/saa7134/saa6752hs.c
+++ b/drivers/media/video/saa7134/saa6752hs.c
@@ -600,7 +600,6 @@ static struct i2c_driver driver = {
600 .owner = THIS_MODULE, 600 .owner = THIS_MODULE,
601 .name = "i2c saa6752hs MPEG encoder", 601 .name = "i2c saa6752hs MPEG encoder",
602 .id = I2C_DRIVERID_SAA6752HS, 602 .id = I2C_DRIVERID_SAA6752HS,
603 .flags = I2C_DF_NOTIFY,
604 .attach_adapter = saa6752hs_probe, 603 .attach_adapter = saa6752hs_probe,
605 .detach_client = saa6752hs_detach, 604 .detach_client = saa6752hs_detach,
606 .command = saa6752hs_command, 605 .command = saa6752hs_command,
diff --git a/drivers/media/video/saa7185.c b/drivers/media/video/saa7185.c
index 132aa7943c16..e24aa16f2d8c 100644
--- a/drivers/media/video/saa7185.c
+++ b/drivers/media/video/saa7185.c
@@ -491,7 +491,6 @@ static struct i2c_driver i2c_driver_saa7185 = {
491 .name = "saa7185", /* name */ 491 .name = "saa7185", /* name */
492 492
493 .id = I2C_DRIVERID_SAA7185B, 493 .id = I2C_DRIVERID_SAA7185B,
494 .flags = I2C_DF_NOTIFY,
495 494
496 .attach_adapter = saa7185_attach_adapter, 495 .attach_adapter = saa7185_attach_adapter,
497 .detach_client = saa7185_detach_client, 496 .detach_client = saa7185_detach_client,
diff --git a/drivers/media/video/saa7191.c b/drivers/media/video/saa7191.c
index cbca896e8cfa..6be98fc0fe24 100644
--- a/drivers/media/video/saa7191.c
+++ b/drivers/media/video/saa7191.c
@@ -791,7 +791,6 @@ static struct i2c_driver i2c_driver_saa7191 = {
791 .owner = THIS_MODULE, 791 .owner = THIS_MODULE,
792 .name = "saa7191", 792 .name = "saa7191",
793 .id = I2C_DRIVERID_SAA7191, 793 .id = I2C_DRIVERID_SAA7191,
794 .flags = I2C_DF_NOTIFY,
795 .attach_adapter = saa7191_probe, 794 .attach_adapter = saa7191_probe,
796 .detach_client = saa7191_detach, 795 .detach_client = saa7191_detach,
797 .command = saa7191_command 796 .command = saa7191_command
diff --git a/drivers/media/video/tda7432.c b/drivers/media/video/tda7432.c
index d32737dd2142..239a58666a12 100644
--- a/drivers/media/video/tda7432.c
+++ b/drivers/media/video/tda7432.c
@@ -504,7 +504,6 @@ static struct i2c_driver driver = {
504 .owner = THIS_MODULE, 504 .owner = THIS_MODULE,
505 .name = "i2c tda7432 driver", 505 .name = "i2c tda7432 driver",
506 .id = I2C_DRIVERID_TDA7432, 506 .id = I2C_DRIVERID_TDA7432,
507 .flags = I2C_DF_NOTIFY,
508 .attach_adapter = tda7432_probe, 507 .attach_adapter = tda7432_probe,
509 .detach_client = tda7432_detach, 508 .detach_client = tda7432_detach,
510 .command = tda7432_command, 509 .command = tda7432_command,
diff --git a/drivers/media/video/tda9840.c b/drivers/media/video/tda9840.c
index 1794686612c6..f29fb507075d 100644
--- a/drivers/media/video/tda9840.c
+++ b/drivers/media/video/tda9840.c
@@ -224,7 +224,6 @@ static struct i2c_driver driver = {
224 .owner = THIS_MODULE, 224 .owner = THIS_MODULE,
225 .name = "tda9840", 225 .name = "tda9840",
226 .id = I2C_DRIVERID_TDA9840, 226 .id = I2C_DRIVERID_TDA9840,
227 .flags = I2C_DF_NOTIFY,
228 .attach_adapter = attach, 227 .attach_adapter = attach,
229 .detach_client = detach, 228 .detach_client = detach,
230 .command = command, 229 .command = command,
diff --git a/drivers/media/video/tda9875.c b/drivers/media/video/tda9875.c
index a5e37dc91f39..d053b6445502 100644
--- a/drivers/media/video/tda9875.c
+++ b/drivers/media/video/tda9875.c
@@ -375,7 +375,6 @@ static struct i2c_driver driver = {
375 .owner = THIS_MODULE, 375 .owner = THIS_MODULE,
376 .name = "i2c tda9875 driver", 376 .name = "i2c tda9875 driver",
377 .id = I2C_DRIVERID_TDA9875, 377 .id = I2C_DRIVERID_TDA9875,
378 .flags = I2C_DF_NOTIFY,
379 .attach_adapter = tda9875_probe, 378 .attach_adapter = tda9875_probe,
380 .detach_client = tda9875_detach, 379 .detach_client = tda9875_detach,
381 .command = tda9875_command, 380 .command = tda9875_command,
diff --git a/drivers/media/video/tda9887.c b/drivers/media/video/tda9887.c
index 2f2414e90e8b..049b44e0767b 100644
--- a/drivers/media/video/tda9887.c
+++ b/drivers/media/video/tda9887.c
@@ -822,7 +822,6 @@ static struct i2c_driver driver = {
822 .owner = THIS_MODULE, 822 .owner = THIS_MODULE,
823 .name = "i2c tda9887 driver", 823 .name = "i2c tda9887 driver",
824 .id = -1, /* FIXME */ 824 .id = -1, /* FIXME */
825 .flags = I2C_DF_NOTIFY,
826 .attach_adapter = tda9887_probe, 825 .attach_adapter = tda9887_probe,
827 .detach_client = tda9887_detach, 826 .detach_client = tda9887_detach,
828 .command = tda9887_command, 827 .command = tda9887_command,
diff --git a/drivers/media/video/tea6415c.c b/drivers/media/video/tea6415c.c
index ee3688348b66..96d88ce60c98 100644
--- a/drivers/media/video/tea6415c.c
+++ b/drivers/media/video/tea6415c.c
@@ -193,7 +193,6 @@ static struct i2c_driver driver = {
193 .owner = THIS_MODULE, 193 .owner = THIS_MODULE,
194 .name = "tea6415c", 194 .name = "tea6415c",
195 .id = I2C_DRIVERID_TEA6415C, 195 .id = I2C_DRIVERID_TEA6415C,
196 .flags = I2C_DF_NOTIFY,
197 .attach_adapter = attach, 196 .attach_adapter = attach,
198 .detach_client = detach, 197 .detach_client = detach,
199 .command = command, 198 .command = command,
diff --git a/drivers/media/video/tea6420.c b/drivers/media/video/tea6420.c
index 17975c19da5e..fd417de95847 100644
--- a/drivers/media/video/tea6420.c
+++ b/drivers/media/video/tea6420.c
@@ -170,7 +170,6 @@ static struct i2c_driver driver = {
170 .owner = THIS_MODULE, 170 .owner = THIS_MODULE,
171 .name = "tea6420", 171 .name = "tea6420",
172 .id = I2C_DRIVERID_TEA6420, 172 .id = I2C_DRIVERID_TEA6420,
173 .flags = I2C_DF_NOTIFY,
174 .attach_adapter = attach, 173 .attach_adapter = attach,
175 .detach_client = detach, 174 .detach_client = detach,
176 .command = command, 175 .command = command,
diff --git a/drivers/media/video/tuner-3036.c b/drivers/media/video/tuner-3036.c
index 79203595b9c1..3505cec2e65a 100644
--- a/drivers/media/video/tuner-3036.c
+++ b/drivers/media/video/tuner-3036.c
@@ -178,7 +178,6 @@ i2c_driver_tuner =
178 .owner = THIS_MODULE, 178 .owner = THIS_MODULE,
179 .name = "sab3036", 179 .name = "sab3036",
180 .id = I2C_DRIVERID_SAB3036, 180 .id = I2C_DRIVERID_SAB3036,
181 .flags = I2C_DF_NOTIFY,
182 .attach_adapter = tuner_probe, 181 .attach_adapter = tuner_probe,
183 .detach_client = tuner_detach, 182 .detach_client = tuner_detach,
184 .command = tuner_command 183 .command = tuner_command
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index e58abdfcaab8..3c75121f6383 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -745,7 +745,6 @@ static struct i2c_driver driver = {
745 .owner = THIS_MODULE, 745 .owner = THIS_MODULE,
746 .name = "tuner", 746 .name = "tuner",
747 .id = I2C_DRIVERID_TUNER, 747 .id = I2C_DRIVERID_TUNER,
748 .flags = I2C_DF_NOTIFY,
749 .attach_adapter = tuner_probe, 748 .attach_adapter = tuner_probe,
750 .detach_client = tuner_detach, 749 .detach_client = tuner_detach,
751 .command = tuner_command, 750 .command = tuner_command,
diff --git a/drivers/media/video/tvaudio.c b/drivers/media/video/tvaudio.c
index 5b20e8177cad..3565f35be7a1 100644
--- a/drivers/media/video/tvaudio.c
+++ b/drivers/media/video/tvaudio.c
@@ -1705,7 +1705,6 @@ static struct i2c_driver driver = {
1705 .owner = THIS_MODULE, 1705 .owner = THIS_MODULE,
1706 .name = "generic i2c audio driver", 1706 .name = "generic i2c audio driver",
1707 .id = I2C_DRIVERID_TVAUDIO, 1707 .id = I2C_DRIVERID_TVAUDIO,
1708 .flags = I2C_DF_NOTIFY,
1709 .attach_adapter = chip_probe, 1708 .attach_adapter = chip_probe,
1710 .detach_client = chip_detach, 1709 .detach_client = chip_detach,
1711 .command = chip_command, 1710 .command = chip_command,
diff --git a/drivers/media/video/tveeprom.c b/drivers/media/video/tveeprom.c
index 5ac235365dd8..195bc51d4576 100644
--- a/drivers/media/video/tveeprom.c
+++ b/drivers/media/video/tveeprom.c
@@ -782,7 +782,6 @@ static struct i2c_driver i2c_driver_tveeprom = {
782 .owner = THIS_MODULE, 782 .owner = THIS_MODULE,
783 .name = "tveeprom", 783 .name = "tveeprom",
784 .id = I2C_DRIVERID_TVEEPROM, 784 .id = I2C_DRIVERID_TVEEPROM,
785 .flags = I2C_DF_NOTIFY,
786 .attach_adapter = tveeprom_attach_adapter, 785 .attach_adapter = tveeprom_attach_adapter,
787 .detach_client = tveeprom_detach_client, 786 .detach_client = tveeprom_detach_client,
788 .command = tveeprom_command, 787 .command = tveeprom_command,
diff --git a/drivers/media/video/tvmixer.c b/drivers/media/video/tvmixer.c
index 5897e5d4d3d2..936e01d2c785 100644
--- a/drivers/media/video/tvmixer.c
+++ b/drivers/media/video/tvmixer.c
@@ -232,7 +232,6 @@ static struct i2c_driver driver = {
232#endif 232#endif
233 .name = "tv card mixer driver", 233 .name = "tv card mixer driver",
234 .id = I2C_DRIVERID_TVMIXER, 234 .id = I2C_DRIVERID_TVMIXER,
235 .flags = I2C_DF_NOTIFY,
236 .detach_adapter = tvmixer_adapters, 235 .detach_adapter = tvmixer_adapters,
237 .attach_adapter = tvmixer_adapters, 236 .attach_adapter = tvmixer_adapters,
238 .detach_client = tvmixer_clients, 237 .detach_client = tvmixer_clients,
diff --git a/drivers/media/video/tvp5150.c b/drivers/media/video/tvp5150.c
index 97431e26d229..4f3ee2091611 100644
--- a/drivers/media/video/tvp5150.c
+++ b/drivers/media/video/tvp5150.c
@@ -806,7 +806,6 @@ static struct i2c_driver driver = {
806 806
807 /* FIXME */ 807 /* FIXME */
808 .id = I2C_DRIVERID_SAA7110, 808 .id = I2C_DRIVERID_SAA7110,
809 .flags = I2C_DF_NOTIFY,
810 809
811 .attach_adapter = tvp5150_attach_adapter, 810 .attach_adapter = tvp5150_attach_adapter,
812 .detach_client = tvp5150_detach_client, 811 .detach_client = tvp5150_detach_client,
diff --git a/drivers/media/video/vpx3220.c b/drivers/media/video/vpx3220.c
index 137b58f2c666..c66d28505bcd 100644
--- a/drivers/media/video/vpx3220.c
+++ b/drivers/media/video/vpx3220.c
@@ -726,7 +726,6 @@ static struct i2c_driver vpx3220_i2c_driver = {
726 .name = "vpx3220", 726 .name = "vpx3220",
727 727
728 .id = I2C_DRIVERID_VPX3220, 728 .id = I2C_DRIVERID_VPX3220,
729 .flags = I2C_DF_NOTIFY,
730 729
731 .attach_adapter = vpx3220_attach_adapter, 730 .attach_adapter = vpx3220_attach_adapter,
732 .detach_client = vpx3220_detach_client, 731 .detach_client = vpx3220_detach_client,
diff --git a/drivers/media/video/wm8775.c b/drivers/media/video/wm8775.c
index a6936ad74fcf..7b07717a3c67 100644
--- a/drivers/media/video/wm8775.c
+++ b/drivers/media/video/wm8775.c
@@ -236,7 +236,6 @@ static struct i2c_driver i2c_driver = {
236 .name = "wm8775", 236 .name = "wm8775",
237 237
238 .id = I2C_DRIVERID_WM8775, 238 .id = I2C_DRIVERID_WM8775,
239 .flags = I2C_DF_NOTIFY,
240 239
241 .attach_adapter = wm8775_probe, 240 .attach_adapter = wm8775_probe,
242 .detach_client = wm8775_detach, 241 .detach_client = wm8775_detach,