From patchwork Tue Apr 16 06:02:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 16147 Return-Path: X-Original-To: linaro@staging.patches.linaro.org Delivered-To: linaro@staging.patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0F4EF2395D for ; Tue, 16 Apr 2013 06:15:22 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id z12sf248826yhz.4 for ; Mon, 15 Apr 2013 23:14:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=Zj5k1p71wj54eGblEkQxf3bh9yozr5Kw823LS/0W8Gs=; b=Us9NLYBzUOrzhMkM2ohxXC6rxglSaraoEFvYSn19pIXrNFiQNYs9a8Qaisv6qT/MM2 eoM3LFcacrQxmYWFXOYJGjpvZ1QlmvvE13FYM/8d012yyi79Bo6lMjwBfY/wVWnvkXcX WPHCMh457TPvxC/3O/vMcVww26qggWlwJ4om4q9W3x4KolbELob+ksBOdBpVB8+ILLbQ 6s0gb6xwWRejtk8b1PAElgHYxFDAl8XezKWDh8+5MldWHrp3mo59je1tSJKouyNOvuVT ZLczZtjLUzhXUfB9JGQSO3I+lc600Wjnem4uLTlCOP3qfUnHIJgWQiNJgzAHG96Z66y8 L16Q== X-Received: by 10.236.32.67 with SMTP id n43mr478358yha.0.1366092889974; Mon, 15 Apr 2013 23:14:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.94.78 with SMTP id da14ls173467qeb.74.gmail; Mon, 15 Apr 2013 23:14:49 -0700 (PDT) X-Received: by 10.58.173.131 with SMTP id bk3mr516081vec.48.1366092889804; Mon, 15 Apr 2013 23:14:49 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id q17si379317vcw.76.2013.04.15.23.14.49 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Apr 2013 23:14:49 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id hz11so102157vcb.24 for ; Mon, 15 Apr 2013 23:14:49 -0700 (PDT) X-Received: by 10.220.39.69 with SMTP id f5mr547676vce.45.1366092889558; Mon, 15 Apr 2013 23:14:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp8859veb; Mon, 15 Apr 2013 23:14:49 -0700 (PDT) X-Received: by 10.68.36.230 with SMTP id t6mr1117576pbj.218.1366092888740; Mon, 15 Apr 2013 23:14:48 -0700 (PDT) Received: from mail-da0-x22a.google.com (mail-da0-x22a.google.com [2607:f8b0:400e:c00::22a]) by mx.google.com with ESMTPS id wo2si1407566pab.88.2013.04.15.23.14.48 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Apr 2013 23:14:48 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c00::22a is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=2607:f8b0:400e:c00::22a; Received: by mail-da0-f42.google.com with SMTP id n15so93513dad.15 for ; Mon, 15 Apr 2013 23:14:48 -0700 (PDT) X-Received: by 10.68.194.195 with SMTP id hy3mr1118436pbc.179.1366092888342; Mon, 15 Apr 2013 23:14:48 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPS id li15sm1333239pab.2.2013.04.15.23.14.45 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Apr 2013 23:14:47 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: s.nawrocki@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 4/5] [media] exynos4-is: Initialize 'sensor' before using Date: Tue, 16 Apr 2013 11:32:22 +0530 Message-Id: <1366092143-5482-4-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1366092143-5482-1-git-send-email-sachin.kamat@linaro.org> References: <1366092143-5482-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQlXJTi1UYeXH0wIJqRgh4RUAUtagBR7YST2ZaDqYgwzs0tPx3QCNSWwxrbdd/vusZGknXCj X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add missing initialization code to the 'sensor' data structure variable before using it. Signed-off-by: Sachin Kamat --- Only compile tested. --- drivers/media/platform/exynos4-is/fimc-is-sensor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/exynos4-is/fimc-is-sensor.c b/drivers/media/platform/exynos4-is/fimc-is-sensor.c index 02b2719..bda9093 100644 --- a/drivers/media/platform/exynos4-is/fimc-is-sensor.c +++ b/drivers/media/platform/exynos4-is/fimc-is-sensor.c @@ -268,7 +268,8 @@ err_gpio: static int fimc_is_sensor_remove(struct i2c_client *client) { - struct fimc_is_sensor *sensor; + struct v4l2_subdev *sd = i2c_get_clientdata(client); + struct fimc_is_sensor *sensor = sd_to_fimc_is_sensor(sd); regulator_bulk_free(SENSOR_NUM_SUPPLIES, sensor->supplies); media_entity_cleanup(&sensor->subdev.entity);