diff options
-rw-r--r-- | drivers/media/video/soc_camera.c | 7 | ||||
-rw-r--r-- | include/media/soc_camera.h | 1 |
2 files changed, 2 insertions, 6 deletions
diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c index aa6614b60d6f..44a94dc934f8 100644 --- a/drivers/media/video/soc_camera.c +++ b/drivers/media/video/soc_camera.c | |||
@@ -152,12 +152,9 @@ static int soc_camera_s_std(struct file *file, void *priv, v4l2_std_id *a) | |||
152 | { | 152 | { |
153 | struct soc_camera_file *icf = file->private_data; | 153 | struct soc_camera_file *icf = file->private_data; |
154 | struct soc_camera_device *icd = icf->icd; | 154 | struct soc_camera_device *icd = icf->icd; |
155 | int ret = 0; | 155 | struct soc_camera_host *ici = to_soc_camera_host(icd->dev.parent); |
156 | |||
157 | if (icd->ops->set_std) | ||
158 | ret = icd->ops->set_std(icd, a); | ||
159 | 156 | ||
160 | return ret; | 157 | return v4l2_device_call_until_err(&ici->v4l2_dev, (__u32)icd, core, s_std, *a); |
161 | } | 158 | } |
162 | 159 | ||
163 | static int soc_camera_reqbufs(struct file *file, void *priv, | 160 | static int soc_camera_reqbufs(struct file *file, void *priv, |
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h index 2b7a8c663605..7c44d4016561 100644 --- a/include/media/soc_camera.h +++ b/include/media/soc_camera.h | |||
@@ -190,7 +190,6 @@ struct soc_camera_ops { | |||
190 | int (*set_bus_param)(struct soc_camera_device *, unsigned long); | 190 | int (*set_bus_param)(struct soc_camera_device *, unsigned long); |
191 | int (*get_chip_id)(struct soc_camera_device *, | 191 | int (*get_chip_id)(struct soc_camera_device *, |
192 | struct v4l2_dbg_chip_ident *); | 192 | struct v4l2_dbg_chip_ident *); |
193 | int (*set_std)(struct soc_camera_device *, v4l2_std_id *); | ||
194 | int (*enum_input)(struct soc_camera_device *, struct v4l2_input *); | 193 | int (*enum_input)(struct soc_camera_device *, struct v4l2_input *); |
195 | const struct v4l2_queryctrl *controls; | 194 | const struct v4l2_queryctrl *controls; |
196 | int num_controls; | 195 | int num_controls; |