From patchwork Fri Dec 3 21:48:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Cohen X-Patchwork-Id: 379171 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oB3LmZgO012291 for ; Fri, 3 Dec 2010 21:48:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752393Ab0LCVse (ORCPT ); Fri, 3 Dec 2010 16:48:34 -0500 Received: from mail-bw0-f46.google.com ([209.85.214.46]:41507 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751876Ab0LCVsd (ORCPT ); Fri, 3 Dec 2010 16:48:33 -0500 Received: by mail-bw0-f46.google.com with SMTP id 15so8780568bwz.19 for ; Fri, 03 Dec 2010 13:48:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=Z8AnT8NeQ5MyQUm5DVgFyVZIRA8gutGH1YYo/N+DfQs=; b=CPPl5Jgp0VFWnsavOEIfCnaMk4xjCtR8Le1J+EmAtVtQvmCWGSZwCMxeswuA2crGnt i9FTzDT5o/R0bhQjc7DPehS2U2Ij2+dws49PenfwTYcf1ZPMUVpDtMQmrUGLKqH+7hym 5cLglok/OtClNpLXzc16HBA8ENKhATfGxCqtI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=hib6/FiLoWBXOfNc8/yGmipKegbSUsI9J7TvUxxL6zM6Aw1Xufjh/e1ImDQ6Uetvm3 pa/h0OyuhbULScoLl9JttVqm4ySXNLf+SOmuqc0qrHRFIN2yguMoCxAlN/KtXKhRvDxv LfrbDuP/Xw7yiUNTInd+2oUmuaOJrBEfBVD2I= Received: by 10.204.97.141 with SMTP id l13mr3062231bkn.184.1291412913060; Fri, 03 Dec 2010 13:48:33 -0800 (PST) Received: from localhost.localdomain (a91-152-85-108.elisa-laajakaista.fi [91.152.85.108]) by mx.google.com with ESMTPS id d11sm445345bkd.22.2010.12.03.13.48.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 03 Dec 2010 13:48:31 -0800 (PST) From: David Cohen To: mchehab@redhat.com Cc: linux-media@vger.kernel.org, marek.vasut@gmail.com, David Cohen Subject: [PATCH 2/2] ov9640: fix OmniVision OV9640 sensor driver's I2C remove function Date: Fri, 3 Dec 2010 23:48:18 +0200 Message-Id: <1291412898-9939-3-git-send-email-dacohen@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1291412898-9939-1-git-send-email-dacohen@gmail.com> References: <1291412898-9939-1-git-send-email-dacohen@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 03 Dec 2010 21:48:36 +0000 (UTC) diff --git a/drivers/media/video/ov9640.c b/drivers/media/video/ov9640.c index c6d8e8a..7628754 100644 --- a/drivers/media/video/ov9640.c +++ b/drivers/media/video/ov9640.c @@ -788,7 +788,8 @@ static int ov9640_probe(struct i2c_client *client, static int ov9640_remove(struct i2c_client *client) { - struct ov9640_priv *priv = i2c_get_clientdata(client); + struct v4l2_subdev *sd = i2c_get_clientdata(client); + struct ov9640_priv *priv = to_ov9640_sensor(sd); kfree(priv); return 0;