From: Simon Glass Date: Wed, 24 Mar 2021 21:26:06 +0000 (+1300) Subject: spi: Return -ENOSYS when system call is not available X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=24e3d5d2a9ed4e4cad6aba4694596efaf82c610c;p=u-boot.git spi: Return -ENOSYS when system call is not available 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 --- diff --git a/include/spi-mem.h b/include/spi-mem.h index 8be3e2bf6b..e354c38897 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