Message ID | CAO64nm73vQyG450M_DCxGSH25xpiCQRYU044htppH9ozwT6S4w@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 4eb9bf0..ae309de 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -580,6 +580,7 @@ static void spi_set_cs(struct spi_device *spi, bool enable) spi->master->set_cs(spi, !enable); } +#ifdef HAVE_DMA static int spi_map_buf(struct spi_master *master, struct device *dev, struct sg_table *sgt, void *buf, size_t len, enum dma_data_direction dir) @@ -636,6 +637,7 @@ static void spi_unmap_buf(struct spi_master *master, struct device *dev, sg_free_table(sgt); } } +#endif static int spi_map_msg(struct spi_master *master, struct spi_message *msg)