From patchwork Wed Feb 13 06:42:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 14770 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 C1CA64C1772 for ; Wed, 13 Feb 2013 06:35:34 +0000 (UTC) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by fiordland.canonical.com (Postfix) with ESMTP id 2DDD9A19566 for ; Wed, 13 Feb 2013 06:35:34 +0000 (UTC) Received: by mail-vc0-f179.google.com with SMTP id gb23so560433vcb.38 for ; Tue, 12 Feb 2013 22:35:33 -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 :in-reply-to:references:x-brightmail-tracker:x-brightmail-tracker :dlp-filter:x-mtr:x-cfilter-loop:x-gm-message-state; bh=GtD091kWAkeJt4bgT7DGshPf6FYSwil1P4px9StGKfI=; b=WOLcbzkB7kdPShf2Bk2+u3GAy/XcMQeRxFf+eA4k7LI4yyiri12JDt0Z/7mKJZkacN B9k1t/6inRA5sQuo1OJiSEp3m/vVHJgIlgd+HaFjVbMum+7uRFoirxBMasRU8y7gc+bc rsKFOmFWI5RgLab2d07nwnxUmhREjO9JEiGF2jwrBESMKRIazE6AsbiB9v07d+x3m76Q vXapzwXNdermltv5CETjr5xMwPu6QiQmsorEmtaumEqXGcwZtyOkBeqfcvruKEcgQQSW iWk4Th7AXfogdBhgMSG+Fz9YraMUoc1OLhWg/ynFHXro3386QiiH4koHW5BoBSUW2VCN CV6g== X-Received: by 10.52.33.167 with SMTP id s7mr19155066vdi.52.1360737333698; Tue, 12 Feb 2013 22:35:33 -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.221.4.5 with SMTP id oa5csp178035vcb; Tue, 12 Feb 2013 22:35:33 -0800 (PST) X-Received: by 10.50.203.72 with SMTP id ko8mr8853172igc.52.1360737333023; Tue, 12 Feb 2013 22:35:33 -0800 (PST) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by mx.google.com with ESMTP id t2si2081489pay.309.2013.02.12.22.35.32; Tue, 12 Feb 2013 22:35:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of gautam.vivek@samsung.com designates 203.254.224.33 as permitted sender) client-ip=203.254.224.33; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of gautam.vivek@samsung.com designates 203.254.224.33 as permitted sender) smtp.mail=gautam.vivek@samsung.com Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MI500FSUBMHOBJ0@mailout3.samsung.com> for patches@linaro.org; Wed, 13 Feb 2013 15:35:31 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.125]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 6F.CC.03918.3343B115; Wed, 13 Feb 2013 15:35:31 +0900 (KST) X-AuditID: cbfee61a-b7f7d6d000000f4e-91-511b3433e756 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id FE.CC.03918.3343B115; Wed, 13 Feb 2013 15:35:31 +0900 (KST) Received: from vivekkumarg-linuxpc.sisodomain.com ([107.108.73.134]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MI500GCKBMN2J60@mmp1.samsung.com> for patches@linaro.org; Wed, 13 Feb 2013 15:35:31 +0900 (KST) From: Vivek Gautam To: u-boot@lists.denx.de Cc: patches@linaro.org, mk7.kang@samsung.com, sjg@chromium.org, kmpark@infradead.org, rajeshwari.s@samsung.com Subject: [PATCH 2/2] spi: exynos: Fix compiler warnings for non-dt systems Date: Wed, 13 Feb 2013 12:12:42 +0530 Message-id: <1360737762-14056-2-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.6.5 In-reply-to: <1360737762-14056-1-git-send-email-gautam.vivek@samsung.com> References: <1360737762-14056-1-git-send-email-gautam.vivek@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCLMWRmVeSWpSXmKPExsWyRsSkVtfYRDrQYPZlfYsph7+wODB63Lm2 hy2AMYrLJiU1J7MstUjfLoErY3PPHZaChxwVeycvZWlgnM3excjJISFgIrFt6UJWCFtM4sK9 9WxdjFwcQgJLGSVaWnYzwxTN/djIApFYxChx9sssZghnFZPE8ZmdYFVsAroSTW93MYLYIgIS Er/6r4LZzAIFEjvXXmMBsYUFvCQmti4Gi7MIqEosOHIKLM4r4CGxdfINqDMUJN7cfgY2k1PA U2L+qZNg9UJANQeXPWAHWSwhcJlNYtKCz8wQgwQkvk0+BDSIAyghK7HpANTVkhIHV9xgmcAo vICRYRWjaGpBckFxUnquoV5xYm5xaV66XnJ+7iZGYBie/vdMagfjygaLQ4wCHIxKPLwOIVKB QqyJZcWVuYcYJTiYlUR4J3BIBwrxpiRWVqUW5ccXleakFh9iTAZaPpFZSjQ5HxgjeSXxhsYm 5qbGppZGRmampqQJK4nzMp56EiAkkJ5YkpqdmlqQWgSzhYmDU6qBkZdz6uMrDv9fzz5jnpNw 4fjxjK7wV/5val5Xruh596JlcRGn+65cnbAtt2fW3dv2I7dtdTubyLNNK9/sm+wzcd+yP1d6 lz19PPlr1oG2A/khWqfCrfQ8HiSriq1/rDB3BuNvff0oNwFW1cmX/+TFaq8RXVy7yvncbH7V 6ZZ1R/95b3jc+ec2O7cSS3FGoqEWc1FxIgA9ydEzhwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMIsWRmVeSWpSXmKPExsVy+t9jAV1jE+lAgy2dqhZTDn9hcWD0uHNt D1sAY1QDo01GamJKapFCal5yfkpmXrqtkndwvHO8qZmBoa6hpYW5kkJeYm6qrZKLT4CuW2YO 0FglhbLEnFKgUEBicbGSvh2mCaEhbroWMI0Rur4hQXA9RgZoIGENY8bmnjssBQ85KvZOXsrS wDibvYuRk0NCwERi7sdGFghbTOLCvfVsXYxcHEICixglzn6ZxQzhrGKSOD6zkxmkik1AV6Lp 7S5GEFtEQELiV/9VMJtZoEBi59prYJOEBbwkJrYuBouzCKhKLDhyCizOK+AhsXXyDVaIbQoS b24/A5vJKeApMf/USbB6IaCag8sesE9g5F3AyLCKUTS1ILmgOCk911CvODG3uDQvXS85P3cT IzjIn0ntYFzZYHGIUYCDUYmH1yFEKlCINbGsuDL3EKMEB7OSCO8EDulAId6UxMqq1KL8+KLS nNTiQ4zJQFdNZJYSTc4HRmBeSbyhsYm5qbGppYmFiZklacJK4ryMp54ECAmkJ5akZqemFqQW wWxh4uCUamCUdKk85BUfqOt499bTx9qnJnIsXf9kvfPCVTkZZ5b8vWTTsj/kaxXnl3m5TyV+ qW707D7GvSurLzjsvdLlh20r9u4R+u/fnpM5K2OTfsleRzmFh4ca7b60r9z4x2XCnkWbeV4x ac1odfC9afOrK/XW/uUam33PN5RcXpFZcjFQZN67xfnHgiceVWIpzkg01GIuKk4EAIDHKcC2 AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQkjuTC1J6Do+WYyNYSWzF5txycaKrk38B8KsOb5Lv5I89kj4k4pxyVkiJBjRIEsy9hTU3Ps Enclosing process_nodes() and spi_get_config() inside CONFIG_OF_CONTROL, since they are compiled only for DT systems. This fixes following warning: exynos_spi.c:391:12: warning: 'process_nodes' defined but not used [-Wunused-function] Signed-off-by: Vivek Gautam Acked-by: Simon Glass --- drivers/spi/exynos_spi.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/spi/exynos_spi.c b/drivers/spi/exynos_spi.c index be60ada..2260d59 100644 --- a/drivers/spi/exynos_spi.c +++ b/drivers/spi/exynos_spi.c @@ -360,6 +360,7 @@ static inline struct exynos_spi *get_spi_base(int dev_index) * @param bus SPI bus structure to fill with information * @return 0 if ok, or -FDT_ERR_NOTFOUND if something was missing */ +#ifdef CONFIG_OF_CONTROL static int spi_get_config(const void *blob, int node, struct spi_bus *bus) { bus->node = node; @@ -415,6 +416,7 @@ static int process_nodes(const void *blob, int node_list[], int count) return 0; } +#endif /* Sadly there is no error return from this function */ void spi_init(void)