summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/ov772x.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-03-31 08:44:22 +0200
committerGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-03-31 08:44:22 +0200
commit2adb7ebfe8e864f77d3f58a65523a9766f86137a (patch)
tree650f02a4dd5b38af5caf2ca411b42aa4beb3ff8b /linux/drivers/media/video/ov772x.c
parent16606c768bcdfd4d0ce36f8263a81aac8324732f (diff)
downloadmediapointer-dvb-s2-2adb7ebfe8e864f77d3f58a65523a9766f86137a.tar.gz
mediapointer-dvb-s2-2adb7ebfe8e864f77d3f58a65523a9766f86137a.tar.bz2
ov772x: wrong pointer for soc_camera_link is modified
From: Kuninori Morimoto <morimoto.kuninori@renesas.com> priv->client->dev.platrom_data mean ov772x_camera_info in ov772x driver. So, struct soc_camera_link doesn't exist there. This patch modify this bug. Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> --- drivers/media/video/ov772x.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Diffstat (limited to 'linux/drivers/media/video/ov772x.c')
-rw-r--r--linux/drivers/media/video/ov772x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/ov772x.c b/linux/drivers/media/video/ov772x.c
index cde3a1019..d3e0bd30e 100644
--- a/linux/drivers/media/video/ov772x.c
+++ b/linux/drivers/media/video/ov772x.c
@@ -670,7 +670,7 @@ static int ov772x_set_bus_param(struct soc_camera_device *icd,
static unsigned long ov772x_query_bus_param(struct soc_camera_device *icd)
{
struct ov772x_priv *priv = container_of(icd, struct ov772x_priv, icd);
- struct soc_camera_link *icl = priv->client->dev.platform_data;
+ struct soc_camera_link *icl = &priv->info->link;
unsigned long flags = SOCAM_PCLK_SAMPLE_RISING | SOCAM_MASTER |
SOCAM_VSYNC_ACTIVE_HIGH | SOCAM_HSYNC_ACTIVE_HIGH |
SOCAM_DATA_ACTIVE_HIGH | priv->info->buswidth;