mmc: sdhci: convert generic bus width setup to library function
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Tested-by: Markus Pargmann <mpa@pengutronix.de> Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <chris@printf.net>
This commit is contained in:
@@ -127,7 +127,7 @@ static void tegra_sdhci_reset_exit(struct sdhci_host *host, u8 mask)
|
||||
}
|
||||
}
|
||||
|
||||
static int tegra_sdhci_buswidth(struct sdhci_host *host, int bus_width)
|
||||
static void tegra_sdhci_set_bus_width(struct sdhci_host *host, int bus_width)
|
||||
{
|
||||
u32 ctrl;
|
||||
|
||||
@@ -144,7 +144,6 @@ static int tegra_sdhci_buswidth(struct sdhci_host *host, int bus_width)
|
||||
ctrl &= ~SDHCI_CTRL_4BITBUS;
|
||||
}
|
||||
sdhci_writeb(host, ctrl, SDHCI_HOST_CONTROL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct sdhci_ops tegra_sdhci_ops = {
|
||||
@@ -152,7 +151,7 @@ static const struct sdhci_ops tegra_sdhci_ops = {
|
||||
.read_l = tegra_sdhci_readl,
|
||||
.read_w = tegra_sdhci_readw,
|
||||
.write_l = tegra_sdhci_writel,
|
||||
.platform_bus_width = tegra_sdhci_buswidth,
|
||||
.set_bus_width = tegra_sdhci_set_bus_width,
|
||||
.platform_reset_exit = tegra_sdhci_reset_exit,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user