summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@bootlin.com>2018-04-16 17:23:00 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2018-05-02 16:08:41 +0300
commit0fc4c61fff02bea1a82caf05884fefc0ceb14c5f (patch)
tree3133dcb387a6d7c2aca000b7709d2c81a2cad9e7 /drivers/mmc
parent743b819e4178935e3f098e5f13db301f532fa9e0 (diff)
downloadlinux-0fc4c61fff02bea1a82caf05884fefc0ceb14c5f.tar.xz
mmc: sunxi: Change sunxi_mmc_init_host argument type
All the other functions in the driver take a struct sunxi_mmc_host pointer. Let's make it consistent. Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sunxi-mmc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c
index 91feed8045fd..9fdaea37aa74 100644
--- a/drivers/mmc/host/sunxi-mmc.c
+++ b/drivers/mmc/host/sunxi-mmc.c
@@ -319,10 +319,9 @@ static int sunxi_mmc_reset_host(struct sunxi_mmc_host *host)
return 0;
}
-static int sunxi_mmc_init_host(struct mmc_host *mmc)
+static int sunxi_mmc_init_host(struct sunxi_mmc_host *host)
{
u32 rval;
- struct sunxi_mmc_host *host = mmc_priv(mmc);
if (sunxi_mmc_reset_host(host))
return -EIO;
@@ -885,7 +884,7 @@ static void sunxi_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
host->vqmmc_enabled = true;
}
- host->ferror = sunxi_mmc_init_host(mmc);
+ host->ferror = sunxi_mmc_init_host(host);
if (host->ferror)
return;