commit | fe00f281f1c97018769b244465618e1ac8421c03 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu Mar 25 10:26:06 2021 +1300 |
committer | Simon Glass <sjg@chromium.org> | Tue Apr 06 16:33:19 2021 +1200 |
tree | 9d96eb24229e297a453ba5774efca6e6c1164855 | |
parent | 12fb749e8d01b0ee9de124b52460104bc8e503d1 [diff] |
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 <sjg@chromium.org>
diff --git a/include/spi-mem.h b/include/spi-mem.h index 8be3e2b..e354c38 100644 --- a/include/spi-mem.h +++ b/include/spi-mem.h
@@ -222,7 +222,7 @@ const struct spi_mem_op *op, struct sg_table *sg) { - return -ENOTSUPP; + return -ENOSYS; } static inline void