diff --git a/arch/arm/src/calypso/calypso_spi.c b/arch/arm/src/calypso/calypso_spi.c index a1e0a3f5a16..7357ccd67a7 100644 --- a/arch/arm/src/calypso/calypso_spi.c +++ b/arch/arm/src/calypso/calypso_spi.c @@ -43,6 +43,7 @@ #include #include #include +#include #include "up_arch.h" #include "calypso_spi.h" @@ -66,8 +67,12 @@ struct calypso_spidev_s }; /* STUBS! */ + #ifndef CONFIG_SPI_OWNBUS -static int spi_lock(FAR struct spi_dev_s *dev, bool lock); +static int spi_lock(FAR struct spi_dev_s *dev, bool lock) +{ + return -ENOSYS; +} #endif static void spi_select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,