From patchwork Thu Dec 27 04:09:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inderpal Singh X-Patchwork-Id: 13698 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 75EF823E03 for ; Thu, 27 Dec 2012 04:09:51 +0000 (UTC) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by fiordland.canonical.com (Postfix) with ESMTP id 10B21A18351 for ; Thu, 27 Dec 2012 04:09:50 +0000 (UTC) Received: by mail-vb0-f48.google.com with SMTP id fc21so9363144vbb.35 for ; Wed, 26 Dec 2012 20:09:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=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 :x-gm-message-state; bh=PMmb4ncizjeLevbc7Ui7/pjTVl8jdgjVUUOwbyuhIrY=; b=VBlCmChQiEcLyXetxtIMyJcMkXk7jRtuuRJ8JD74B13hCyNFrPRIF0jgRNohMlrlU3 31t2f9loG/lE5GmzYhFiBVJeEtjyvh7RVhm4AEY/YD0JeTaubmjRRSJAAy2s1U6K1Nqa 5CTqB5EzbzsVLhCofEMqbrIC9ZwUdkPayJtCEhH1niH1cmtXHf38CLVHNGFQEPBAYYCr YFdBH4Bu7vQyKAS+PvIxTSA686OgLd/zr2KtVb/36Q7Ehjn0N41AaLCtDtEl04r13FDM s4NLEilUcJfBg5lS/IhFsV/2DvkQj8/H8XjqXfW9UUYWV7mZZC8FxYzNJ+arSGYWtSo2 U7Tg== X-Received: by 10.52.176.6 with SMTP id ce6mr39099537vdc.57.1356581390453; Wed, 26 Dec 2012 20:09:50 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.214.195 with SMTP id oc3csp2907vec; Wed, 26 Dec 2012 20:09:49 -0800 (PST) X-Received: by 10.66.81.198 with SMTP id c6mr86514766pay.50.1356581389463; Wed, 26 Dec 2012 20:09:49 -0800 (PST) Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by mx.google.com with ESMTPS id tp3si27784589pbc.325.2012.12.26.20.09.49 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 26 Dec 2012 20:09:49 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.44 is neither permitted nor denied by best guess record for domain of inderpal.singh@linaro.org) client-ip=209.85.160.44; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.44 is neither permitted nor denied by best guess record for domain of inderpal.singh@linaro.org) smtp.mail=inderpal.singh@linaro.org Received: by mail-pb0-f44.google.com with SMTP id uo1so5098815pbc.31 for ; Wed, 26 Dec 2012 20:09:49 -0800 (PST) X-Received: by 10.68.235.71 with SMTP id uk7mr92266304pbc.10.1356581388980; Wed, 26 Dec 2012 20:09:48 -0800 (PST) Received: from inder-ubuntu.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPS id v2sm17648251paz.36.2012.12.26.20.09.45 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 26 Dec 2012 20:09:48 -0800 (PST) From: Inderpal Singh To: linux-i2c@vger.kernel.org Cc: linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com, ben-linux@fluff.org, thomas.abraham@linaro.org, patches@linaro.org Subject: [PATCH 1/2] i2c: s3c2410: Initialize i2c->gpios[] with requested gpio lines Date: Thu, 27 Dec 2012 09:39:43 +0530 Message-Id: <1356581384-23063-1-git-send-email-inderpal.singh@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQmr5ZEdncBxlcTPFy5c6XHVjeWf7FVEkqzRyGgz6gZYfx4YX9pNpqBeTeUacQXPa5imriw+ i2c->gpios[] is being used to free_gpios but it's not getting initialized. Signed-off-by: Inderpal Singh --- drivers/i2c/busses/i2c-s3c2410.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c index a290d08..f1d1f1e 100644 --- a/drivers/i2c/busses/i2c-s3c2410.c +++ b/drivers/i2c/busses/i2c-s3c2410.c @@ -875,6 +875,8 @@ static int s3c24xx_i2c_parse_dt_gpio(struct s3c24xx_i2c *i2c) dev_err(i2c->dev, "gpio [%d] request failed\n", gpio); goto free_gpio; } + + i2c->gpios[idx] = gpio; } return 0;