diff options
Diffstat (limited to 'drivers/media/video/mt9v022.c')
-rw-r--r-- | drivers/media/video/mt9v022.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/mt9v022.c b/drivers/media/video/mt9v022.c index 82e1a3381a7a..3b3a6a027b1d 100644 --- a/drivers/media/video/mt9v022.c +++ b/drivers/media/video/mt9v022.c | |||
@@ -273,6 +273,7 @@ static int mt9v022_set_bus_param(struct soc_camera_device *icd, | |||
273 | unsigned long flags) | 273 | unsigned long flags) |
274 | { | 274 | { |
275 | struct mt9v022 *mt9v022 = container_of(icd, struct mt9v022, icd); | 275 | struct mt9v022 *mt9v022 = container_of(icd, struct mt9v022, icd); |
276 | struct soc_camera_link *icl = mt9v022->client->dev.platform_data; | ||
276 | unsigned int width_flag = flags & SOCAM_DATAWIDTH_MASK; | 277 | unsigned int width_flag = flags & SOCAM_DATAWIDTH_MASK; |
277 | int ret; | 278 | int ret; |
278 | u16 pixclk = 0; | 279 | u16 pixclk = 0; |
@@ -296,6 +297,8 @@ static int mt9v022_set_bus_param(struct soc_camera_device *icd, | |||
296 | mt9v022->datawidth = width_flag == SOCAM_DATAWIDTH_8 ? 8 : 10; | 297 | mt9v022->datawidth = width_flag == SOCAM_DATAWIDTH_8 ? 8 : 10; |
297 | } | 298 | } |
298 | 299 | ||
300 | flags = soc_camera_apply_sensor_flags(icl, flags); | ||
301 | |||
299 | if (flags & SOCAM_PCLK_SAMPLE_RISING) | 302 | if (flags & SOCAM_PCLK_SAMPLE_RISING) |
300 | pixclk |= 0x10; | 303 | pixclk |= 0x10; |
301 | 304 | ||