aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-11-24 12:01:45 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-24 12:01:45 -0500
commit8503232f2e9604d844d8f52ddea2e55ccc6c38f6 (patch)
tree741130386f690b1f7819253d4197a9aa29282450 /drivers/media/video/em28xx
parent1ec9a35e1cfaff6983977b5db4ed2f81a0e63920 (diff)
[media] em28xx: Fix a few warnings due to HVR-930C addition
drivers/media/video/em28xx/em28xx-cards.c:339:30: warning: ‘hauppauge_930c_gpio’ defined but not used [-Wunused-variable] drivers/media/video/em28xx/em28xx-dvb.c: In function ‘em28xx_dvb_init’: drivers/media/video/em28xx/em28xx-dvb.c:886:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx')
-rw-r--r--drivers/media/video/em28xx/em28xx-cards.c2
-rw-r--r--drivers/media/video/em28xx/em28xx-dvb.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c
index f63a7159f7fc..5b0336b6d83e 100644
--- a/drivers/media/video/em28xx/em28xx-cards.c
+++ b/drivers/media/video/em28xx/em28xx-cards.c
@@ -336,6 +336,7 @@ static struct em28xx_reg_seq pctv_460e[] = {
336 { -1, -1, -1, -1}, 336 { -1, -1, -1, -1},
337}; 337};
338 338
339#if 0
339static struct em28xx_reg_seq hauppauge_930c_gpio[] = { 340static struct em28xx_reg_seq hauppauge_930c_gpio[] = {
340 {EM2874_R80_GPIO, 0x6f, 0xff, 10}, 341 {EM2874_R80_GPIO, 0x6f, 0xff, 10},
341 {EM2874_R80_GPIO, 0x4f, 0xff, 10}, /* xc5000 reset */ 342 {EM2874_R80_GPIO, 0x4f, 0xff, 10}, /* xc5000 reset */
@@ -344,7 +345,6 @@ static struct em28xx_reg_seq hauppauge_930c_gpio[] = {
344 { -1, -1, -1, -1}, 345 { -1, -1, -1, -1},
345}; 346};
346 347
347#if 0
348static struct em28xx_reg_seq hauppauge_930c_digital[] = { 348static struct em28xx_reg_seq hauppauge_930c_digital[] = {
349 {EM2874_R80_GPIO, 0xf6, 0xff, 10}, 349 {EM2874_R80_GPIO, 0xf6, 0xff, 10},
350 {EM2874_R80_GPIO, 0xe6, 0xff, 100}, 350 {EM2874_R80_GPIO, 0xe6, 0xff, 100},
diff --git a/drivers/media/video/em28xx/em28xx-dvb.c b/drivers/media/video/em28xx/em28xx-dvb.c
index 55a900897cac..ea2208e434a5 100644
--- a/drivers/media/video/em28xx/em28xx-dvb.c
+++ b/drivers/media/video/em28xx/em28xx-dvb.c
@@ -864,6 +864,8 @@ static int em28xx_dvb_init(struct em28xx *dev)
864 } 864 }
865 break; 865 break;
866 case EM2884_BOARD_HAUPPAUGE_WINTV_HVR_930C: 866 case EM2884_BOARD_HAUPPAUGE_WINTV_HVR_930C:
867 {
868 struct xc5000_config cfg;
867 hauppauge_hvr930c_init(dev); 869 hauppauge_hvr930c_init(dev);
868 870
869 dvb->dont_attach_fe1 = 1; 871 dvb->dont_attach_fe1 = 1;
@@ -883,7 +885,6 @@ static int em28xx_dvb_init(struct em28xx *dev)
883 dvb->fe[1]->id = 1; 885 dvb->fe[1]->id = 1;
884 886
885 /* Attach xc5000 */ 887 /* Attach xc5000 */
886 struct xc5000_config cfg;
887 memset(&cfg, 0, sizeof(cfg)); 888 memset(&cfg, 0, sizeof(cfg));
888 cfg.i2c_address = 0x61; 889 cfg.i2c_address = 0x61;
889 cfg.if_khz = 4000; 890 cfg.if_khz = 4000;
@@ -906,6 +907,7 @@ static int em28xx_dvb_init(struct em28xx *dev)
906 sizeof(dvb->fe[0]->ops.tuner_ops)); 907 sizeof(dvb->fe[0]->ops.tuner_ops));
907 908
908 break; 909 break;
910 }
909 case EM2884_BOARD_TERRATEC_H5: 911 case EM2884_BOARD_TERRATEC_H5:
910 terratec_h5_init(dev); 912 terratec_h5_init(dev);
911 913