diff options
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | 2017-05-12 20:16:29 +0200 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2017-11-03 02:37:10 +0800 |
commit | 2bcfc01275851d447737747799a8672e269004c5 (patch) | |
tree | 623aa83d298db8e222a616a3e1515618117a3c35 /include/mmc.h | |
parent | ca75b23187fcd835e149876b06b19352e92083fd (diff) |
mmc: make mmc_set_ios() return status
set_ios callback has a return value of 'int' but the mmc_set_ios()
function ignore this. Modify mmc_set_ios() and the callers of mmc_set_ios() to
to return the error status.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/mmc.h')
-rw-r--r-- | include/mmc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mmc.h b/include/mmc.h index 1119465c09e..05c650aa6cc 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -540,7 +540,7 @@ int mmc_unbind(struct udevice *dev); int mmc_initialize(bd_t *bis); int mmc_init(struct mmc *mmc); int mmc_read(struct mmc *mmc, u64 src, uchar *dst, int size); -void mmc_set_clock(struct mmc *mmc, uint clock); +int mmc_set_clock(struct mmc *mmc, uint clock); struct mmc *find_mmc_device(int dev_num); int mmc_set_dev(int dev_num); void print_mmc_devices(char separator); |