]> git.karo-electronics.de Git - linux-beck.git/commitdiff
spi: rspi: fix build error when CONFIG_OF is not set
authorShimoda, Yoshihiro <yoshihiro.shimoda.uh@renesas.com>
Mon, 3 Feb 2014 01:43:46 +0000 (10:43 +0900)
committerMark Brown <broonie@linaro.org>
Mon, 3 Feb 2014 13:14:06 +0000 (13:14 +0000)
This patch fixes an issue that the following build error happens when
the CONFIG_OF is not set:

drivers/spi/spi-rspi.c: In function 'rspi_probe':
drivers/spi/spi-rspi.c:1203:26: error: 'rspi_of_match' undeclared (first use in this function)

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-rspi.c

index 34ad4bca8a41210e6b7afdbda9122be9f2ac7944..e5cfc3d77b8cedca6f02227e5c99cbfc234f4ec3 100644 (file)
@@ -1164,6 +1164,7 @@ static int rspi_parse_dt(struct device *dev, struct spi_master *master)
        return 0;
 }
 #else
+#define rspi_of_match  NULL
 static inline int rspi_parse_dt(struct device *dev, struct spi_master *master)
 {
        return -EINVAL;