From patchwork Thu Mar 19 08:58:23 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13029 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2J9V3P3000727 for ; Thu, 19 Mar 2009 09:31:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751428AbZCSJax (ORCPT ); Thu, 19 Mar 2009 05:30:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752571AbZCSJax (ORCPT ); Thu, 19 Mar 2009 05:30:53 -0400 Received: from mail.renesas.com ([202.234.163.13]:53520 "EHLO mail03.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751428AbZCSJax (ORCPT ); Thu, 19 Mar 2009 05:30:53 -0400 X-AuditID: ac140386-0000000400001aa8-ab-49c210c65ab1 Received: from guardian02.idc.renesas.com ([172.20.8.201]) by mail03.idc.renesas.com (sendmail) with ESMTP id n2J9UiQ1005008; Thu, 19 Mar 2009 18:30:45 +0900 (JST) Received: (from root@localhost) by guardian02.idc.renesas.com with id n2J9UjaV017954; Thu, 19 Mar 2009 18:30:45 +0900 (JST) Received: from mta03.idc.renesas.com (localhost [127.0.0.1]) by mta03.idc.renesas.com with ESMTP id n2J9UlhW005926; Thu, 19 Mar 2009 18:30:47 +0900 (JST) Received: from PG10870.renesas.com ([172.30.8.159]) by ims05.idc.renesas.com (Sendmail) with ESMTPA id <0KGQ0009VYF6QV@ims05.idc.renesas.com>; Thu, 19 Mar 2009 18:30:45 +0900 (JST) Date: Thu, 19 Mar 2009 17:58:23 +0900 From: Kuninori Morimoto Subject: [PATCH] ov772x: wrong pointer for soc_camera_link is modified To: Guennadi Liakhovetski Cc: Linux Media Message-id: MIME-version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-type: text/plain; charset=US-ASCII User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.1 (i386-mingw-nt5.1.2600) MULE/5.0 (SAKAKI) Meadow/3.00-dev (KIKU) X-Brightmail-Tracker: AAAAAA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 --- drivers/media/video/ov772x.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/ov772x.c b/drivers/media/video/ov772x.c index 84b0fc1..34c9819 100644 --- a/drivers/media/video/ov772x.c +++ b/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;