From patchwork Tue Mar 5 13:49:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 15242 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 DC71A23E64 for ; Tue, 5 Mar 2013 13:52:20 +0000 (UTC) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by fiordland.canonical.com (Postfix) with ESMTP id 6EAD6A19404 for ; Tue, 5 Mar 2013 13:52:20 +0000 (UTC) Received: by mail-vc0-f175.google.com with SMTP id p1so3505379vcq.6 for ; Tue, 05 Mar 2013 05:52:20 -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 :x-brightmail-tracker:x-brightmail-tracker:dlp-filter:x-mtr :x-cfilter-loop:x-gm-message-state; bh=LWDRSLIhKbj9lbSQ0r3l6Lf77B99TMKcjMU3f4/ulwg=; b=dhsG84QQKvmRTRPCyMkk3MaAUneDP/BBRCjtib8jys8us1bXvYLaZBBawhDau8Ipad 9govxcPxVhVs/O8rzTh5I/l3cD7JiivpF8HzVYco9coPEShJwRNu46d7SgGNQvPlmpjU EEKhySi/rxxOA0V8Uzmdl3AY22JPZieliKK/8pJd4IDuMWGWW3ZWPC1AXYMSyNQ0DQx2 rLOIE7i/1LUyaIcJ446+LldZz53ETug3B2f4W9MmQYe8TGiLpGOnXYMpkQeIs7LzZW3q M46H7H7b9a4UTsojp1pXihqKY9N6lWvCcsjsNKqu1E1qZ5YwKGgPn1Z0nQtyBQscoCdy MpzA== X-Received: by 10.58.181.201 with SMTP id dy9mr9892177vec.34.1362491539936; Tue, 05 Mar 2013 05:52:19 -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.127.98 with SMTP id nf2csp112602veb; Tue, 5 Mar 2013 05:52:19 -0800 (PST) X-Received: by 10.68.240.33 with SMTP id vx1mr37495167pbc.173.1362491538269; Tue, 05 Mar 2013 05:52:18 -0800 (PST) Received: from mailout1.samsung.com (mailout1.samsung.com. [203.254.224.24]) by mx.google.com with ESMTP id tm6si27240782pbc.145.2013.03.05.05.52.17; Tue, 05 Mar 2013 05:52:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of gautam.vivek@samsung.com designates 203.254.224.24 as permitted sender) client-ip=203.254.224.24; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of gautam.vivek@samsung.com designates 203.254.224.24 as permitted sender) smtp.mail=gautam.vivek@samsung.com Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MJ6002TAX74FT10@mailout1.samsung.com> for patches@linaro.org; Tue, 05 Mar 2013 22:52:16 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.123]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id C7.66.17763.098F5315; Tue, 05 Mar 2013 22:52:16 +0900 (KST) X-AuditID: cbfee690-b7f6b6d000004563-10-5135f89029c8 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 4A.03.03918.098F5315; Tue, 05 Mar 2013 22:52:16 +0900 (KST) Received: from vivekkumarg-linuxpc.sisodomain.com ([107.108.214.169]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MJ600JXXX6I6D10@mmp1.samsung.com> for patches@linaro.org; Tue, 05 Mar 2013 22:52:16 +0900 (KST) From: Vivek Gautam To: u-boot@lists.denx.de Cc: patches@linaro.org, mk7.kang@samsung.com, sjg@chromium.org, rajeshwari.s@samsung.com Subject: [PATCH 1/2] SMDK5250: Fix compiler warning for non-dt systems Date: Tue, 05 Mar 2013 19:19:56 +0530 Message-id: <1362491397-14562-1-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.6.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDLMWRmVeSWpSXmKPExsWyRsSkWnfCD9NAg63PlC2mHP7C4sDocefa HrYAxigum5TUnMyy1CJ9uwSujNlXnrEW7GCv2L74EXMD41y2LkYODgkBE4lHi/y6GDmBTDGJ C/fWA4W5OIQEljJK3Hy7iRkiYSKxbdIRRojEIkaJR2fvsUA4q5kkPqz6zgRSxSagK9H0dhcj iC0iICHxq/8qI8gGZoEoicYPeiBhYQE3iY133oOVswioSpxc+hmsnFfAQ+J061ImiGUKEm9u P2MGmS8hsINNYsHs+2wQDQIS3yYfYoG4WlZi0wGo4yQlDq64wTKBUXABI8MqRtHUguSC4qT0 IhO94sTc4tK8dL3k/NxNjMCQOv3v2YQdjPcOWB9iTAYaN5FZSjQ5HxiSeSXxhsYm5qbGpmZG lpaWpqQJK4nzyl+SCRQSSE8sSc1OTS1ILYovKs1JLT7EyMTBKdXAmKJ+oWSLhO/q6EXTGYL2 sFyckqadVcLo+PeHaqNn3anDTnenlESFWi+R+33f+fCxVYzdwY8n/d+4LNyYr6P0zObU6eHp v85ou+/kmrqWtUXYbOX7la3Ml30FVovrZwWpSrJuWBtuz+IRF6WzrdYm85/Fi7Nnax8G2y93 LDCcI2Eqcu5Q5euFSizFGYmGWsxFxYkApJlIYT8CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupikeLIzCtJLcpLzFFi42I5/e+xgO6EH6aBBr/axC2mHP7C4sDocefa HrYAxqgGRpuM1MSU1CKF1Lzk/JTMvHRbJe/geOd4UzMDQ11DSwtzJYW8xNxUWyUXnwBdt8wc oLFKCmWJOaVAoYDE4mIlfTtME0JD3HQtYBojdH1DguB6jAzQQMIaxozZV56xFuxgr9i++BFz A+Ncti5GTg4JAROJbZOOMELYYhIX7q0HinNxCAksYpR4dPYeC4Szmkniw6rvTCBVbAK6Ek1v d4F1iAhISPzqvwpkc3AwC0RJNH7QAwkLC7hJbLzzHqycRUBV4uTSz2DlvAIeEqdblzJBLFOQ eHP7GfMERu4FjAyrGEVTC5ILipPScw31ihNzi0vz0vWS83M3MYJD9pnUDsaVDRaHGAU4GJV4 eBmOmgQKsSaWFVfmHmKU4GBWEuEN/WAaKMSbklhZlVqUH19UmpNafIgxGWj7RGYp0eR8YDzl lcQbGpuYmxqbWppYmJhZkiasJM7LeOpJgJBAemJJanZqakFqEcwWJg5OqQZGr3kFrz2Xzv+Q +Mil02jjEu2XxnZhM1iq/W+tbzW+U3RJ5d9UxjDO5GU9DFPXn7fj/llyuVjHpbys7tW7JsH9 8dNiDDVq59xxmafg+HzqlW1OfEHrGUIO5VQadL/8f3Pu4i0x2nL5pV6dXtdSV4b+OPbgdLDb PV/tpUs6fyyrfxtYYjBrv/lKJZbijERDLeai4kQA4Ck83Z0CAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQkMvO4YZF7rjhKN4OWpBCr2ZMORJY6G8ZOemYYRdCWbj5HWmswsUoB3WLRKz0gZadLQxdR4 Compiling for non-dt systems gives folowing warning: smdk5250.c: In function 'board_eth_init': smdk5250.c:152:6: warning: unused variable 'node' [-Wunused-variable] Declare variable 'node' only for dt enabled systems to remove this warning. Signed-off-by: Vivek Gautam Acked-by: Simon Glass --- board/samsung/smdk5250/smdk5250.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c index 7a5f132..2fa771e 100644 --- a/board/samsung/smdk5250/smdk5250.c +++ b/board/samsung/smdk5250/smdk5250.c @@ -149,9 +149,10 @@ int board_eth_init(bd_t *bis) u32 smc_bw_conf, smc_bc_conf; struct fdt_sromc config; fdt_addr_t base_addr; - int node; #ifdef CONFIG_OF_CONTROL + int node; + node = decode_sromc(gd->fdt_blob, &config); if (node < 0) { debug("%s: Could not find sromc configuration\n", __func__);