diff options
author | Shimoda, Yoshihiro <yoshihiro.shimoda.uh@renesas.com> | 2014-02-02 20:43:46 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-03 08:14:06 -0500 |
commit | 64b67defe4eb4de2d2df8acd5584a9e28fa727d3 (patch) | |
tree | d027f6211f426a349d9e6caa66c651a0cd78eadd | |
parent | 880c6d114fd79a6973708744c78c7f55da6aea4c (diff) |
spi: rspi: fix build error when CONFIG_OF is not set
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>
-rw-r--r-- | drivers/spi/spi-rspi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c index 34ad4bca8a41..e5cfc3d77b8c 100644 --- a/drivers/spi/spi-rspi.c +++ b/drivers/spi/spi-rspi.c | |||
@@ -1164,6 +1164,7 @@ static int rspi_parse_dt(struct device *dev, struct spi_master *master) | |||
1164 | return 0; | 1164 | return 0; |
1165 | } | 1165 | } |
1166 | #else | 1166 | #else |
1167 | #define rspi_of_match NULL | ||
1167 | static inline int rspi_parse_dt(struct device *dev, struct spi_master *master) | 1168 | static inline int rspi_parse_dt(struct device *dev, struct spi_master *master) |
1168 | { | 1169 | { |
1169 | return -EINVAL; | 1170 | return -EINVAL; |