summaryrefslogtreecommitdiff
path: root/drivers/spi/exynos_spi.c
diff options
context:
space:
mode:
authorVivek Gautam <gautam.vivek@samsung.com>2013-03-05 03:49:57 +0000
committerMinkyu Kang <mk7.kang@samsung.com>2013-03-29 11:16:25 +0900
commit7d1795840889b4f21fbfb4196119d0c923706a54 (patch)
treed2079c4f1c1f20ecdfb19515d7ddade522c6b9a6 /drivers/spi/exynos_spi.c
parent48e2218cd1d63fe968648796d81b8dd6f1cc2bf8 (diff)
downloadu-boot-imx-7d1795840889b4f21fbfb4196119d0c923706a54.zip
u-boot-imx-7d1795840889b4f21fbfb4196119d0c923706a54.tar.gz
u-boot-imx-7d1795840889b4f21fbfb4196119d0c923706a54.tar.bz2
spi: exynos: Fix compiler warnings for non-dt systems
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 <gautam.vivek@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'drivers/spi/exynos_spi.c')
-rw-r--r--drivers/spi/exynos_spi.c2
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)