aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc/gen_atmel_mci.c
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2016-12-30 15:30:16 +0900
committerJaehoon Chung <jh80.chung@samsung.com>2017-01-11 19:40:13 +0900
commit07b0b9c00cc8f8e981df35ac4720057469a8d3c8 (patch)
treee95d69706c7d22e4cac913008d4f5948f0e398d1 /drivers/mmc/gen_atmel_mci.c
parent6f88a3a5d9488bc0aed5a62ca5f2a3cda4deded9 (diff)
downloadu-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/gen_atmel_mci.c')
-rw-r--r--drivers/mmc/gen_atmel_mci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/gen_atmel_mci.c b/drivers/mmc/gen_atmel_mci.c
index cca0b04..7dc4a5d 100644
--- a/drivers/mmc/gen_atmel_mci.c
+++ b/drivers/mmc/gen_atmel_mci.c
@@ -336,7 +336,7 @@ mci_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
}
/* Entered into mmc structure during driver init */
-static void mci_set_ios(struct mmc *mmc)
+static int mci_set_ios(struct mmc *mmc)
{
struct atmel_mci_priv *priv = mmc->priv;
atmel_mci_t *mci = priv->mci;
@@ -370,6 +370,8 @@ static void mci_set_ios(struct mmc *mmc)
writel(busw << 7 | MMCI_BF(SCDSEL, MCI_BUS), &mci->sdcr);
}
+
+ return 0;
}
/* Entered into mmc structure during driver init */