X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=common%2Fexports.c;h=88fcfc8cb6fc652e8fb5242869ebdb4c0813f5dd;hb=f3b4bc458de3285a04c5f60df6372ad5ca79fa60;hp=b97ca48307dcba1493d9426bde8e6f706d8fa1ed;hpb=80729a5493874e696bc6f69a6fc8b54c3c0c5042;p=oweals%2Fu-boot.git diff --git a/common/exports.c b/common/exports.c index b97ca48307..88fcfc8cb6 100644 --- a/common/exports.c +++ b/common/exports.c @@ -27,10 +27,12 @@ unsigned long get_version(void) # define i2c_write dummy # define i2c_read dummy #endif -#ifndef CONFIG_CMD_SPI +#if !defined(CONFIG_CMD_SPI) || defined(CONFIG_DM_SPI) # define spi_init dummy # define spi_setup_slave dummy # define spi_free_slave dummy +#endif +#ifndef CONFIG_CMD_SPI # define spi_claim_bus dummy # define spi_release_bus dummy # define spi_xfer dummy