Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64b67def authored by Shimoda, Yoshihiro's avatar Shimoda, Yoshihiro Committed by Mark Brown
Browse files

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: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 880c6d11
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;