|
@@ -48,19 +48,6 @@ struct sdhci_tegra {
|
|
|
int power_gpio;
|
|
|
};
|
|
|
|
|
|
-static u32 tegra_sdhci_readl(struct sdhci_host *host, int reg)
|
|
|
-{
|
|
|
- u32 val;
|
|
|
-
|
|
|
- if (unlikely(reg == SDHCI_PRESENT_STATE)) {
|
|
|
- /* Use wp_gpio here instead? */
|
|
|
- val = readl(host->ioaddr + reg);
|
|
|
- return val | SDHCI_WRITE_PROTECT;
|
|
|
- }
|
|
|
-
|
|
|
- return readl(host->ioaddr + reg);
|
|
|
-}
|
|
|
-
|
|
|
static u16 tegra_sdhci_readw(struct sdhci_host *host, int reg)
|
|
|
{
|
|
|
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
|
|
@@ -150,7 +137,6 @@ static void tegra_sdhci_set_bus_width(struct sdhci_host *host, int bus_width)
|
|
|
|
|
|
static const struct sdhci_ops tegra_sdhci_ops = {
|
|
|
.get_ro = tegra_sdhci_get_ro,
|
|
|
- .read_l = tegra_sdhci_readl,
|
|
|
.read_w = tegra_sdhci_readw,
|
|
|
.write_l = tegra_sdhci_writel,
|
|
|
.set_clock = sdhci_set_clock,
|