diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-04-01 02:57:53 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-04-06 20:44:24 -0400 |
commit | e6574f2fbecdb8af807169d345c10131ae060a88 (patch) | |
tree | 9923d1065397b9796a476cac238bacbdf1d820d1 /drivers/media/video/zoran | |
parent | 868f985c2fb85b5f32785bb55a349d180a30f3d3 (diff) |
V4L/DVB (11373): v4l2-common: add explicit v4l2_device pointer as first arg to new_(probed)_subdev
The functions v4l2_i2c_new_subdev and v4l2_i2c_new_probed_subdev relied on
i2c_get_adapdata to return the v4l2_device. However, this is not always
possible on embedded platforms. So modify the API to pass the v4l2_device
pointer explicitly.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/zoran')
-rw-r--r-- | drivers/media/video/zoran/zoran_card.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/video/zoran/zoran_card.c b/drivers/media/video/zoran/zoran_card.c index f91bba435ed..1ef70b090c4 100644 --- a/drivers/media/video/zoran/zoran_card.c +++ b/drivers/media/video/zoran/zoran_card.c | |||
@@ -1360,11 +1360,13 @@ static int __devinit zoran_probe(struct pci_dev *pdev, | |||
1360 | goto zr_free_irq; | 1360 | goto zr_free_irq; |
1361 | } | 1361 | } |
1362 | 1362 | ||
1363 | zr->decoder = v4l2_i2c_new_probed_subdev(&zr->i2c_adapter, | 1363 | zr->decoder = v4l2_i2c_new_probed_subdev(&zr->v4l2_dev, |
1364 | zr->card.mod_decoder, zr->card.i2c_decoder, zr->card.addrs_decoder); | 1364 | &zr->i2c_adapter, zr->card.mod_decoder, zr->card.i2c_decoder, |
1365 | zr->card.addrs_decoder); | ||
1365 | 1366 | ||
1366 | if (zr->card.mod_encoder) | 1367 | if (zr->card.mod_encoder) |
1367 | zr->encoder = v4l2_i2c_new_probed_subdev(&zr->i2c_adapter, | 1368 | zr->encoder = v4l2_i2c_new_probed_subdev(&zr->v4l2_dev, |
1369 | &zr->i2c_adapter, | ||
1368 | zr->card.mod_encoder, zr->card.i2c_encoder, | 1370 | zr->card.mod_encoder, zr->card.i2c_encoder, |
1369 | zr->card.addrs_encoder); | 1371 | zr->card.addrs_encoder); |
1370 | 1372 | ||