diff mbox series

[2/6] spi: Return -ENOSYS when system call is not available

Message ID 20210321031824.2170848-3-sjg@chromium.org
State Changes Requested
Delegated to: Tom Rini
Headers show
Series Use -ENOSYS consistently | expand

Commit Message

Simon Glass March 21, 2021, 3:18 a.m. UTC
Update spi_controller_dma_map_mem_op_data() to use -ENOSYS, which is the
correct error code for U-Boot.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/spi-mem.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/spi-mem.h b/include/spi-mem.h
index 8be3e2bf6b5..e354c388979 100644
--- a/include/spi-mem.h
+++ b/include/spi-mem.h
@@ -222,7 +222,7 @@  spi_controller_dma_map_mem_op_data(struct spi_controller *ctlr,
 				   const struct spi_mem_op *op,
 				   struct sg_table *sg)
 {
-	return -ENOTSUPP;
+	return -ENOSYS;
 }
 
 static inline void