diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2009-12-11 09:31:35 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-16 06:27:19 -0500 |
commit | 0f4482940a75b52db931e1fff181c9d267e462d2 (patch) | |
tree | f1b354771394b99aaecbbf56e1c3d82b522b50a4 /drivers/media/video/ov772x.c | |
parent | 3fd7ceffddd52c2f8c004a7999ccb705d592cbfd (diff) |
V4L/DVB (13650): soc-camera: switch drivers and platforms to use .priv in struct soc_camera_link
After this change drivers can be further extended to not fail, if they don't
get platform data, but to use defaults.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ov772x.c')
-rw-r--r-- | drivers/media/video/ov772x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/ov772x.c b/drivers/media/video/ov772x.c index 205229333466..dcb690cb5ae7 100644 --- a/drivers/media/video/ov772x.c +++ b/drivers/media/video/ov772x.c | |||
@@ -1143,10 +1143,10 @@ static int ov772x_probe(struct i2c_client *client, | |||
1143 | } | 1143 | } |
1144 | 1144 | ||
1145 | icl = to_soc_camera_link(icd); | 1145 | icl = to_soc_camera_link(icd); |
1146 | if (!icl) | 1146 | if (!icl || !icl->priv) |
1147 | return -EINVAL; | 1147 | return -EINVAL; |
1148 | 1148 | ||
1149 | info = container_of(icl, struct ov772x_camera_info, link); | 1149 | info = icl->priv; |
1150 | 1150 | ||
1151 | if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA)) { | 1151 | if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA)) { |
1152 | dev_err(&adapter->dev, | 1152 | dev_err(&adapter->dev, |