From patchwork Tue Feb 17 10:23:39 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Ospite X-Patchwork-Id: 7593 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 n1HANkHW007187 for ; Tue, 17 Feb 2009 10:23:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750962AbZBQKXp (ORCPT ); Tue, 17 Feb 2009 05:23:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751723AbZBQKXp (ORCPT ); Tue, 17 Feb 2009 05:23:45 -0500 Received: from smtp-out26.alice.it ([85.33.2.26]:2882 "EHLO smtp-out26.alice.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750962AbZBQKXp (ORCPT ); Tue, 17 Feb 2009 05:23:45 -0500 Received: from FBCMMO02.fbc.local ([192.168.68.196]) by smtp-out26.alice.it with Microsoft SMTPSVC(6.0.3790.3959); Tue, 17 Feb 2009 11:23:47 +0100 Received: from FBCMCL01B02.fbc.local ([192.168.69.83]) by FBCMMO02.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Tue, 17 Feb 2009 11:23:46 +0100 Received: from badebec ([79.9.91.105]) by FBCMCL01B02.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Tue, 17 Feb 2009 11:23:41 +0100 Date: Tue, 17 Feb 2009 11:23:39 +0100 From: Antonio Ospite To: linux-media@vger.kernel.org Cc: Robert Jarzmik Subject: [PATCH] mt9m111: Call icl->reset() on mt9m111_reset(). Message-Id: <20090217112339.f959035b.ospite@studenti.unina.it> X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.11; i486-pc-linux-gnu) X-Face: a@Cn0j@M`+r6ur{KjA9.:8wo\nq" X-Mailing-List: linux-media@vger.kernel.org Call icl->reset() on mt9m111_reset(). Signed-off-by: Antonio Ospite Acked-by: Robert Jarzmik --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/media/video/mt9m111.c b/drivers/media/video/mt9m111.c index c043f62..92dd7f3 100644 --- a/drivers/media/video/mt9m111.c +++ b/drivers/media/video/mt9m111.c @@ -393,6 +393,8 @@ static int mt9m111_disable(struct soc_camera_device *icd) static int mt9m111_reset(struct soc_camera_device *icd) { + struct mt9m111 *mt9m111 = container_of(icd, struct mt9m111, icd); + struct soc_camera_link *icl = mt9m111->client->dev.platform_data; int ret; ret = reg_set(RESET, MT9M111_RESET_RESET_MODE); @@ -401,6 +403,10 @@ static int mt9m111_reset(struct soc_camera_device *icd) if (!ret) ret = reg_clear(RESET, MT9M111_RESET_RESET_MODE | MT9M111_RESET_RESET_SOC); + + if (icl->reset) + icl->reset(&mt9m111->client->dev); + return ret; }