diff options
author | Thierry MERLE <thierry.merle@free.fr> | 2008-10-11 21:56:13 +0200 |
---|---|---|
committer | Thierry MERLE <thierry.merle@free.fr> | 2008-10-11 21:56:13 +0200 |
commit | 58f52d61d57fe5a5ed3cf4542663f6641e53eff7 (patch) | |
tree | 0523031ce50d76d9432616c185d95c71c96dc340 /linux/drivers/media/video | |
parent | 229d73ec94274e219fc8a35bec92c2dde7a2a724 (diff) | |
download | mediapointer-dvb-s2-58f52d61d57fe5a5ed3cf4542663f6641e53eff7.tar.gz mediapointer-dvb-s2-58f52d61d57fe5a5ed3cf4542663f6641e53eff7.tar.bz2 |
em28xx-dvb: dvb_init() code factorization
From: Thierry MERLE <thierry.merle@free.fr>
In dvb_init(),
case EM2880_BOARD_TERRATEC_HYBRID_XS:
case EM2880_BOARD_KWORLD_DVB_310U:
can be put in the same case than EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900
since they do the same thing.
Priority: normal
Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r-- | linux/drivers/media/video/em28xx/em28xx-dvb.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-dvb.c b/linux/drivers/media/video/em28xx/em28xx-dvb.c index b98749b8d..714d35c51 100644 --- a/linux/drivers/media/video/em28xx/em28xx-dvb.c +++ b/linux/drivers/media/video/em28xx/em28xx-dvb.c @@ -422,6 +422,8 @@ static int dvb_init(struct em28xx *dev) } break; case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900: + case EM2880_BOARD_TERRATEC_HYBRID_XS: + case EM2880_BOARD_KWORLD_DVB_310U: dvb->frontend = dvb_attach(zl10353_attach, &em28xx_zl10353_with_xc3028, &dev->i2c_adap); @@ -443,24 +445,6 @@ static int dvb_init(struct em28xx *dev) } break; #endif - case EM2880_BOARD_TERRATEC_HYBRID_XS: - dvb->frontend = dvb_attach(zl10353_attach, - &em28xx_zl10353_with_xc3028, - &dev->i2c_adap); - if (attach_xc3028(0x61, dev) < 0) { - result = -EINVAL; - goto out_free; - } - break; - case EM2880_BOARD_KWORLD_DVB_310U: - dvb->frontend = dvb_attach(zl10353_attach, - &em28xx_zl10353_with_xc3028, - &dev->i2c_adap); - if (attach_xc3028(0x61, dev) < 0) { - result = -EINVAL; - goto out_free; - } - break; default: printk(KERN_ERR "%s/2: The frontend of your DVB/ATSC card" " isn't supported yet\n", |