diff options
-rw-r--r-- | drivers/media/video/em28xx/em28xx-dvb.c | 4 | ||||
-rw-r--r-- | drivers/media/video/tuner-xc2028.c | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/drivers/media/video/em28xx/em28xx-dvb.c b/drivers/media/video/em28xx/em28xx-dvb.c index 21b8f1d48024..39581d976e01 100644 --- a/drivers/media/video/em28xx/em28xx-dvb.c +++ b/drivers/media/video/em28xx/em28xx-dvb.c | |||
@@ -214,17 +214,13 @@ static struct zl10353_config em28xx_zl10353_with_xc3028 = { | |||
214 | static int attach_xc3028(u8 addr, struct em28xx *dev) | 214 | static int attach_xc3028(u8 addr, struct em28xx *dev) |
215 | { | 215 | { |
216 | struct dvb_frontend *fe; | 216 | struct dvb_frontend *fe; |
217 | struct xc2028_ctrl ctl; | ||
218 | struct xc2028_config cfg; | 217 | struct xc2028_config cfg; |
219 | 218 | ||
220 | memset(&cfg, 0, sizeof(cfg)); | 219 | memset(&cfg, 0, sizeof(cfg)); |
221 | cfg.i2c_adap = &dev->i2c_adap; | 220 | cfg.i2c_adap = &dev->i2c_adap; |
222 | cfg.i2c_addr = addr; | 221 | cfg.i2c_addr = addr; |
223 | cfg.ctrl = &ctl; | ||
224 | cfg.callback = em28xx_tuner_callback; | 222 | cfg.callback = em28xx_tuner_callback; |
225 | 223 | ||
226 | em28xx_setup_xc3028(dev, &ctl); | ||
227 | |||
228 | if (!dev->dvb->frontend) { | 224 | if (!dev->dvb->frontend) { |
229 | printk(KERN_ERR "%s/2: dvb frontend not attached. " | 225 | printk(KERN_ERR "%s/2: dvb frontend not attached. " |
230 | "Can't attach xc3028\n", | 226 | "Can't attach xc3028\n", |
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c index 95d5922eac95..9dd688ec3cff 100644 --- a/drivers/media/video/tuner-xc2028.c +++ b/drivers/media/video/tuner-xc2028.c | |||
@@ -130,7 +130,7 @@ struct xc2028_data { | |||
130 | _rc; \ | 130 | _rc; \ |
131 | }) | 131 | }) |
132 | 132 | ||
133 | static unsigned int xc2028_get_reg(struct xc2028_data *priv, u16 reg, u16 *val) | 133 | static int xc2028_get_reg(struct xc2028_data *priv, u16 reg, u16 *val) |
134 | { | 134 | { |
135 | unsigned char buf[2]; | 135 | unsigned char buf[2]; |
136 | unsigned char ibuf[2]; | 136 | unsigned char ibuf[2]; |