diff options
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-i2c.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-i2c.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/media/video/ivtv/ivtv-i2c.c b/drivers/media/video/ivtv/ivtv-i2c.c index e73a196ecc7a..9e3d32b8004c 100644 --- a/drivers/media/video/ivtv/ivtv-i2c.c +++ b/drivers/media/video/ivtv/ivtv-i2c.c | |||
@@ -161,15 +161,18 @@ int ivtv_i2c_register(struct ivtv *itv, unsigned idx) | |||
161 | return -1; | 161 | return -1; |
162 | if (hw == IVTV_HW_TUNER) { | 162 | if (hw == IVTV_HW_TUNER) { |
163 | /* special tuner handling */ | 163 | /* special tuner handling */ |
164 | sd = v4l2_i2c_new_probed_subdev(adap, mod, type, | 164 | sd = v4l2_i2c_new_probed_subdev(&itv->v4l2_dev, |
165 | adap, mod, type, | ||
165 | itv->card_i2c->radio); | 166 | itv->card_i2c->radio); |
166 | if (sd) | 167 | if (sd) |
167 | sd->grp_id = 1 << idx; | 168 | sd->grp_id = 1 << idx; |
168 | sd = v4l2_i2c_new_probed_subdev(adap, mod, type, | 169 | sd = v4l2_i2c_new_probed_subdev(&itv->v4l2_dev, |
170 | adap, mod, type, | ||
169 | itv->card_i2c->demod); | 171 | itv->card_i2c->demod); |
170 | if (sd) | 172 | if (sd) |
171 | sd->grp_id = 1 << idx; | 173 | sd->grp_id = 1 << idx; |
172 | sd = v4l2_i2c_new_probed_subdev(adap, mod, type, | 174 | sd = v4l2_i2c_new_probed_subdev(&itv->v4l2_dev, |
175 | adap, mod, type, | ||
173 | itv->card_i2c->tv); | 176 | itv->card_i2c->tv); |
174 | if (sd) | 177 | if (sd) |
175 | sd->grp_id = 1 << idx; | 178 | sd->grp_id = 1 << idx; |
@@ -178,11 +181,11 @@ int ivtv_i2c_register(struct ivtv *itv, unsigned idx) | |||
178 | if (!hw_addrs[idx]) | 181 | if (!hw_addrs[idx]) |
179 | return -1; | 182 | return -1; |
180 | if (hw == IVTV_HW_UPD64031A || hw == IVTV_HW_UPD6408X) { | 183 | if (hw == IVTV_HW_UPD64031A || hw == IVTV_HW_UPD6408X) { |
181 | unsigned short addrs[2] = { hw_addrs[idx], I2C_CLIENT_END }; | 184 | sd = v4l2_i2c_new_probed_subdev_addr(&itv->v4l2_dev, |
182 | 185 | adap, mod, type, hw_addrs[idx]); | |
183 | sd = v4l2_i2c_new_probed_subdev(adap, mod, type, addrs); | ||
184 | } else { | 186 | } else { |
185 | sd = v4l2_i2c_new_subdev(adap, mod, type, hw_addrs[idx]); | 187 | sd = v4l2_i2c_new_subdev(&itv->v4l2_dev, |
188 | adap, mod, type, hw_addrs[idx]); | ||
186 | } | 189 | } |
187 | if (sd) | 190 | if (sd) |
188 | sd->grp_id = 1 << idx; | 191 | sd->grp_id = 1 << idx; |