diff mbox series

[U-Boot] spi: sh_qspi: Replace CONFIG_DM_SPI with CONFIG_IS_ENABLED(DM_SPI)

Message ID 20190219050736.4308-1-marek.vasut+renesas@gmail.com
State Deferred
Delegated to: Marek Vasut
Headers show
Series [U-Boot] spi: sh_qspi: Replace CONFIG_DM_SPI with CONFIG_IS_ENABLED(DM_SPI) | expand

Commit Message

Marek Vasut Feb. 19, 2019, 5:07 a.m. UTC
Perform the replacement to allow platforms use non-DM SPI flash access
in SPL/TPL. This is thus far needed on platforms with size constraints.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Jagan Teki <jagan@openedev.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
---
 drivers/spi/sh_qspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/spi/sh_qspi.c b/drivers/spi/sh_qspi.c
index 5ae203d8d4..549881f386 100644
--- a/drivers/spi/sh_qspi.c
+++ b/drivers/spi/sh_qspi.c
@@ -222,7 +222,7 @@  static int sh_qspi_xfer_common(struct sh_qspi_slave *ss, unsigned int bitlen,
 	return ret;
 }
 
-#ifndef CONFIG_DM_SPI
+#if !CONFIG_IS_ENABLED(DM_SPI)
 static inline struct sh_qspi_slave *to_sh_qspi(struct spi_slave *slave)
 {
 	return container_of(slave, struct sh_qspi_slave, slave);