mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-22 10:34:55 +08:00
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>
This commit is contained in:
parent
743b819e41
commit
0fc4c61fff
@ -319,10 +319,9 @@ static int sunxi_mmc_reset_host(struct sunxi_mmc_host *host)
|
|||||||
return 0;
|
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;
|
u32 rval;
|
||||||
struct sunxi_mmc_host *host = mmc_priv(mmc);
|
|
||||||
|
|
||||||
if (sunxi_mmc_reset_host(host))
|
if (sunxi_mmc_reset_host(host))
|
||||||
return -EIO;
|
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->vqmmc_enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
host->ferror = sunxi_mmc_init_host(mmc);
|
host->ferror = sunxi_mmc_init_host(host);
|
||||||
if (host->ferror)
|
if (host->ferror)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user