From patchwork Mon Jan 14 05:17:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 14021 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 CDC8823F89 for ; Mon, 14 Jan 2013 05:10:28 +0000 (UTC) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by fiordland.canonical.com (Postfix) with ESMTP id 4543DA185C3 for ; Mon, 14 Jan 2013 05:10:28 +0000 (UTC) Received: by mail-vc0-f181.google.com with SMTP id gb30so3109901vcb.26 for ; Sun, 13 Jan 2013 21:10:27 -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-auditid:from:to:cc:subject:date:message-id:x-mailer :dlp-filter:x-mtr:x-brightmail-tracker:x-brightmail-tracker :x-cfilter-loop:x-gm-message-state; bh=moD5sKABKQNsK/XdlwmwMeogu6X3PccRgVBW8PJXmD8=; b=bFRq9N7IpWM76Ip5J9VEPvWz1jx6VkYRYK4KArTZcmh8xE4xmUBkQwUWkpLTjWN7m2 KvX6B+ptxCItriWDzFo5IHeX9ntAFBh2PJ7dxfkwn93qO1cWcChkmGdtw3173XFhFyqS 7L+MR1K954WTacZAuk1XpnggrIFvDgIzNGlNi8lupiqjVwtwcOG1/Iuh0IrN/0lbixog V1yQ11zr8JvJXTBjXnfDDz9fsS32xfhsdG2e79fytb6rKjP8y/oSQyKxf6vHn9oBBuRw 4gnKzRg1ToSSszJAceZg0LwZII1O2UF+S3jOvKGqo3JdCPMdx+e3BmwLjR+u6f+GidoH fYwg== X-Received: by 10.52.176.6 with SMTP id ce6mr88192160vdc.57.1358140227661; Sun, 13 Jan 2013 21:10:27 -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.145.101 with SMTP id st5csp44332veb; Sun, 13 Jan 2013 21:10:26 -0800 (PST) X-Received: by 10.68.232.101 with SMTP id tn5mr253496245pbc.125.1358140226115; Sun, 13 Jan 2013 21:10:26 -0800 (PST) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by mx.google.com with ESMTP id rr6si13135836pbc.101.2013.01.13.21.10.25; Sun, 13 Jan 2013 21:10:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.25 as permitted sender) client-ip=203.254.224.25; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.25 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MGL00ERJNP9K340@mailout2.samsung.com>; Mon, 14 Jan 2013 14:10:24 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.122]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 57.38.01231.04393F05; Mon, 14 Jan 2013 14:10:24 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-74-50f39340bff7 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 17.38.01231.04393F05; Mon, 14 Jan 2013 14:10:24 +0900 (KST) Received: from rajeshwari-linux.sisodomain.com ([107.108.215.115]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MGL00CKQNP74Z60@mmp2.samsung.com>; Mon, 14 Jan 2013 14:10:24 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Cc: patches@linaro.org, mk7.kang@samsung.com, chander.kashyap@linaro.org Subject: [PATCH] I2C: S3C24X0: Resolve build error for VCMA9 Date: Mon, 14 Jan 2013 10:47:44 +0530 Message-id: <1358140664-23237-1-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrBLMWRmVeSWpSXmKPExsWyRsSkStdh8ucAgztfZCwerr/JYjHl8BcW ByaPO9f2sAUwRnHZpKTmZJalFunbJXBltMydw15wi6tie+sG9gbGbxxdjJwcEgImEu/OPmCH sMUkLtxbz9bFyMUhJLCUUeLCwT5mmKLrB2AS0xklOhe1QjkTmSTOrHgE1s4mYCSx9eQ0RhBb REBC4lf/VSCbg4NZwENi0ukAkLCwgI3ExlNz2UDCLAKqEo9/pYCEeYEqvrXPgdqlIHFs6ldW EJtFQEDi2+RDLCDlEgKyEpsOMINslRDYwybxuW89K0S9pMTBFTdYJjAKLmBkWMUomlqQXFCc lJ5rqFecmFtcmpeul5yfu4kRGFyn/z2T2sG4ssHiEKMAB6MSD++kiM8BQqyJZcWVuYcYJTiY lUR4Q+uAQrwpiZVVqUX58UWlOanFhxh9gC6ZyCwlmpwPDPy8knhDYxNzU2NTSyMjM1NTHMJK 4ryMp54ECAmkJ5akZqemFqQWwYxj4uCUamBc/C/Gf9OnqifNrO/YJLxvXfq/oZ5xraR44wVG g0q9ispFXabBHamHv/F6fnnEzxsbUcCodHkqn82N3dYZ22+lNjyUfNFQqSmz5M30HbqsP5tk a7yrRK5oBVSfetHzosjjjn2Sxq6N/M8LlU6oPLpiFqK6ck9HWoBV2TWRx+3x/004Mw+nHFFi Kc5INNRiLipOBAAcBExsWwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOLMWRmVeSWpSXmKPExsVy+t9jQV2HyZ8DDG5/ErN4uP4mi8WUw19Y HJg87lzbwxbAGNXAaJORmpiSWqSQmpecn5KZl26r5B0c7xxvamZgqGtoaWGupJCXmJtqq+Ti E6DrlpkDNFtJoSwxpxQoFJBYXKykb4dpQmiIm64FTGOErm9IEFyPkQEaSFjDmNEydw57wS2u iu2tG9gbGL9xdDFyckgImEhcP7CeDcIWk7hwD8Tm4hASmM4o0bmoFcqZyCRxZsUjdpAqNgEj ia0npzGC2CICEhK/+q8C2RwczAIeEpNOB4CEhQVsJDaemssGEmYRUJV4/CsFJMwLVPGtfQ4z xC4FiWNTv7JOYORewMiwilE0tSC5oDgpPddQrzgxt7g0L10vOT93EyM4dJ9J7WBc2WBxiFGA g1GJh3dSxOcAIdbEsuLK3EOMEhzMSiK8oXVAId6UxMqq1KL8+KLSnNTiQ4w+QMsnMkuJJucD 4yqvJN7Q2MTc1NjU0sTCxMwSh7CSOC/jqScBQgLpiSWp2ampBalFMOOYODilgBHZvU/6/bu4 /S4tiVw7ZHI8NLlV8tSrnj6fZ/Q8W8x//8+M7Y8FDws6zwsVWRh35Pk6HlH5ixqMIZdcBaf8 vD19ep+Ctri89MYfx4vOp6w7c8YqUzHp16wDzyJvnL7699YKVf5YxpqTO57fVKrb4anW2aOt ++8LM2/ZmQNn/kyeX1M+Tzpto58SS3FGoqEWc1FxIgBE78DRigIAAA== X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQleab66gt2ggn+2f5EH6pW6Cwu6cuImVzoEUnefx4NA0fAB02/x8/t4Y8V2LQLdZPHrYSPq This patch resolves the build error for I2C driver in VCMA9. Signed-off-by: Rajeshwari Shinde --- drivers/i2c/s3c24x0_i2c.c | 4 +++- drivers/i2c/s3c24x0_i2c.h | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/s3c24x0_i2c.c b/drivers/i2c/s3c24x0_i2c.c index 7ec01ec..769a2ba 100644 --- a/drivers/i2c/s3c24x0_i2c.c +++ b/drivers/i2c/s3c24x0_i2c.c @@ -67,9 +67,11 @@ * variables to live in SRAM */ static unsigned int g_current_bus __attribute__((section(".data"))); +#ifdef CONFIG_OF_CONTROL +static int i2c_busses __attribute__((section(".data"))); static struct s3c24x0_i2c_bus i2c_bus[CONFIG_MAX_I2C_NUM] __attribute__((section(".data"))); -static int i2c_busses __attribute__((section(".data"))); +#endif #if !(defined CONFIG_EXYNOS4 || defined CONFIG_EXYNOS5) static int GetI2CSDA(void) diff --git a/drivers/i2c/s3c24x0_i2c.h b/drivers/i2c/s3c24x0_i2c.h index 1243bf1..c75bcab 100644 --- a/drivers/i2c/s3c24x0_i2c.h +++ b/drivers/i2c/s3c24x0_i2c.h @@ -31,11 +31,12 @@ struct s3c24x0_i2c { u32 iiclc; }; +#ifdef CONFIG_OF_CONTROL struct s3c24x0_i2c_bus { int node; /* device tree node */ int bus_num; /* i2c bus number */ struct s3c24x0_i2c *regs; enum periph_id id; }; - +#endif #endif /* _S3C24X0_I2C_H */