Message ID | 20170105081657.28055-3-jh80.chung@samsung.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3tvLBs4hFDz9s2G for <incoming@patchwork.ozlabs.org>; Thu, 5 Jan 2017 19:17:25 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A75BEB3869; Thu, 5 Jan 2017 09:17:20 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UZwMhwpbpLvi; Thu, 5 Jan 2017 09:17:20 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 33949B38E6; Thu, 5 Jan 2017 09:17:18 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8A07BA75C2 for <u-boot@lists.denx.de>; Thu, 5 Jan 2017 09:17:10 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id riGf0ahIqND8 for <u-boot@lists.denx.de>; Thu, 5 Jan 2017 09:17:10 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by theia.denx.de (Postfix) with ESMTPS id 15B9EA760C for <u-boot@lists.denx.de>; Thu, 5 Jan 2017 09:17:07 +0100 (CET) Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OJA00NRJSCFZF60@mailout4.samsung.com> for u-boot@lists.denx.de; Thu, 05 Jan 2017 17:17:03 +0900 (KST) Received: from epsmges1p3.samsung.com (unknown [182.195.40.65]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20170105081703epcas1p24103995ae7949eb17d4f81477fca9558~W0i5FlCY60765507655epcas1p2v; Thu, 5 Jan 2017 08:17:03 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id E5.16.03670.FF00E685; Thu, 5 Jan 2017 17:17:03 +0900 (KST) Received: from epcpsbgm1new.samsung.com (u26.gpu120.samsung.co.kr [203.254.230.26]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20170105081703epcas1p2662e347efbc0d64ff3d21c61455189a1~W0i46uaQU3211032110epcas1p2P; Thu, 5 Jan 2017 08:17:03 +0000 (GMT) X-AuditID: b6c32a37-f79116d000000e56-44-586e00ff1136 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 91.86.28252.FF00E685; Thu, 5 Jan 2017 17:17:03 +0900 (KST) Received: from localhost.localdomain ([10.113.62.216]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OJA003EBSCEEM40@mmp2.samsung.com>; Thu, 05 Jan 2017 17:17:03 +0900 (KST) From: Jaehoon Chung <jh80.chung@samsung.com> To: u-boot@lists.denx.de Date: Thu, 05 Jan 2017 17:16:52 +0900 Message-id: <20170105081657.28055-3-jh80.chung@samsung.com> X-Mailer: git-send-email 2.10.2 In-reply-to: <20170105081657.28055-1-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLKsWRmVeSWpSXmKPExsWy7bCmge5/hrwIg43fJCxu/Gpjteg40sJo 8XZvJ7sDs8fZOzsYPfq2rGIMYIpKtclITUxJLVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBX UshLzE21VXLxCdB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v31gPFuTiEBGYxSsw5/IkVJCEk8INRYskTdxCbTUBHYvu342ANIgISEr/6rzKC2MwC DhJ9n9aBxYUFXCV6Ju8Ci7MIqEo8u/4BaA4HB6+AtcSJI1UQu+QlFp4/AlbOKWAjse3Ad0aI VdYSN08tYp/AyLuAkWEVo0RqQXJBcVJ6rmFearlecWJucWleul5yfu4mRnAoPpPawXhwl/sh RgEORiUeXg+B3Agh1sSy4srcQ4wSHMxKIry3/wGFeFMSK6tSi/Lji0pzUosPMZoC3TWRWUo0 OR8YJ3kl8YYm5ibmxgYW5paWJkZK4ryNs5+FCwmkJ5akZqemFqQWwfQxcXBKNTAy6LaUbP7e 4loxsbTvhbGvadXHgmrlBv27BxwXSXTt/7Fo2ROlQ6lveRYf6Vr3/fuc2vC04u7Mf8pXklf1 bt13NfGAxDrZu3w+/sKOdmlMC/mSmq7+PP0uO/T+N47Flq2zDsrMNltpemlz3l215Rs3XIld Os/N59Wqvw//v5z00/z3KSlp9bhfSizFGYmGWsxFxYkASUy65VsCAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170105081703epcas1p2662e347efbc0d64ff3d21c61455189a1 X-Msg-Generator: CA X-Sender-IP: 203.254.230.26 X-Local-Sender: =?UTF-8?B?7KCV7J6s7ZuIG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbUzUo7LGF7J6EKS/ssYXsnoQ=?= X-Global-Sender: =?UTF-8?B?SmFlaG9vbiBDaHVuZxtUaXplbiBQbGF0Zm9ybSBMYWIuG1Nh?= =?UTF-8?B?bXN1bmcgRWxlY3Ryb25pY3MbUzUvU2VuaW9yIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170105081703epcas1p2662e347efbc0d64ff3d21c61455189a1 X-RootMTR: 20170105081703epcas1p2662e347efbc0d64ff3d21c61455189a1 References: <20170105081657.28055-1-jh80.chung@samsung.com> <CGME20170105081703epcas1p2662e347efbc0d64ff3d21c61455189a1@epcas1p2.samsung.com> Subject: [U-Boot] [PATCH 2/7] i2c: s3c24x0: fix the compiler error for exynos4 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <http://lists.denx.de/mailman/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <http://lists.denx.de/mailman/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
diff --git a/drivers/i2c/s3c24x0_i2c.c b/drivers/i2c/s3c24x0_i2c.c index 2ece9f4..7df14e9 100644 --- a/drivers/i2c/s3c24x0_i2c.c +++ b/drivers/i2c/s3c24x0_i2c.c @@ -24,6 +24,12 @@ #include <i2c.h> #include "s3c24x0_i2c.h" +#ifndef CONFIG_SYS_I2C_S3C24X0_SLAVE +#define SYS_I2C_S3C24X0_SLAVE 0 +#else +#define SYS_I2C_S3C24X0_SLAVE CONFIG_SYS_I2C_S3C24X0_SLAVE +#endif + DECLARE_GLOBAL_DATA_PTR; /* @@ -87,7 +93,7 @@ static int s3c24x0_i2c_set_bus_speed(struct udevice *dev, unsigned int speed) i2c_bus->clock_frequency = speed; i2c_ch_init(i2c_bus->regs, i2c_bus->clock_frequency, - CONFIG_SYS_I2C_S3C24X0_SLAVE); + SYS_I2C_S3C24X0_SLAVE); return 0; }
If CONFIG_SYS_I2C_S3C24X0_SLAVE isn't defined, then complie error should be occurred. This patch is for preventing it. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> --- drivers/i2c/s3c24x0_i2c.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)