diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2016-12-30 15:30:16 +0900 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2017-01-11 19:40:13 +0900 |
commit | 07b0b9c00cc8f8e981df35ac4720057469a8d3c8 (patch) | |
tree | e95d69706c7d22e4cac913008d4f5948f0e398d1 /drivers/mmc/mxcmmc.c | |
parent | 6f88a3a5d9488bc0aed5a62ca5f2a3cda4deded9 (diff) | |
download | u-boot-07b0b9c00cc8f8e981df35ac4720057469a8d3c8.zip u-boot-07b0b9c00cc8f8e981df35ac4720057469a8d3c8.tar.gz u-boot-07b0b9c00cc8f8e981df35ac4720057469a8d3c8.tar.bz2 |
mmc: change the set_ios return type from void to int
To maintain consistency, set_ios type of legacy mmc_ops changed to int.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers/mmc/mxcmmc.c')
-rw-r--r-- | drivers/mmc/mxcmmc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/mxcmmc.c b/drivers/mmc/mxcmmc.c index 5a385a3..dcf17c5 100644 --- a/drivers/mmc/mxcmmc.c +++ b/drivers/mmc/mxcmmc.c @@ -448,7 +448,7 @@ static void mxcmci_set_clk_rate(struct mxcmci_host *host, unsigned int clk_ios) writel((prescaler << 4) | divider, &host->base->clk_rate); } -static void mxcmci_set_ios(struct mmc *mmc) +static int mxcmci_set_ios(struct mmc *mmc) { struct mxcmci_host *host = mmc->priv; if (mmc->bus_width == 4) @@ -464,6 +464,8 @@ static void mxcmci_set_ios(struct mmc *mmc) } host->clock = mmc->clock; + + return 0; } static int mxcmci_init(struct mmc *mmc) |