diff options
author | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2019-02-12 09:07:37 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2019-02-25 02:40:58 -0500 |
commit | e8391453e27ffaee5db524421a253f94394159ca (patch) | |
tree | 19b2cd60416f3a2ce9b47134f6713571ed6fac09 /drivers/mmc | |
parent | 39ee32ce486756f0a8bb0d313aa28bb5bfd0d63d (diff) |
mmc: sdhci-tegra: drop ->get_ro() implementation
The SDHCI core is know properly checking for the state of a WP GPIO,
so there is no longer any need for the sdhci-tegra code to implement
->get_ro() using mmc_gpio_get_ro().
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Tested-by: Thierry Reding <treding@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci-tegra.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 31d7ae4f1e20..32e62904c0d3 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c | |||
@@ -245,11 +245,6 @@ static void tegra210_sdhci_writew(struct sdhci_host *host, u16 val, int reg) | |||
245 | } | 245 | } |
246 | } | 246 | } |
247 | 247 | ||
248 | static unsigned int tegra_sdhci_get_ro(struct sdhci_host *host) | ||
249 | { | ||
250 | return mmc_gpio_get_ro(host->mmc); | ||
251 | } | ||
252 | |||
253 | static bool tegra_sdhci_is_pad_and_regulator_valid(struct sdhci_host *host) | 248 | static bool tegra_sdhci_is_pad_and_regulator_valid(struct sdhci_host *host) |
254 | { | 249 | { |
255 | struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); | 250 | struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); |
@@ -977,7 +972,6 @@ static const struct cqhci_host_ops sdhci_tegra_cqhci_ops = { | |||
977 | }; | 972 | }; |
978 | 973 | ||
979 | static const struct sdhci_ops tegra_sdhci_ops = { | 974 | static const struct sdhci_ops tegra_sdhci_ops = { |
980 | .get_ro = tegra_sdhci_get_ro, | ||
981 | .read_w = tegra_sdhci_readw, | 975 | .read_w = tegra_sdhci_readw, |
982 | .write_l = tegra_sdhci_writel, | 976 | .write_l = tegra_sdhci_writel, |
983 | .set_clock = tegra_sdhci_set_clock, | 977 | .set_clock = tegra_sdhci_set_clock, |
@@ -1033,7 +1027,6 @@ static const struct sdhci_tegra_soc_data soc_data_tegra30 = { | |||
1033 | }; | 1027 | }; |
1034 | 1028 | ||
1035 | static const struct sdhci_ops tegra114_sdhci_ops = { | 1029 | static const struct sdhci_ops tegra114_sdhci_ops = { |
1036 | .get_ro = tegra_sdhci_get_ro, | ||
1037 | .read_w = tegra_sdhci_readw, | 1030 | .read_w = tegra_sdhci_readw, |
1038 | .write_w = tegra_sdhci_writew, | 1031 | .write_w = tegra_sdhci_writew, |
1039 | .write_l = tegra_sdhci_writel, | 1032 | .write_l = tegra_sdhci_writel, |
@@ -1087,7 +1080,6 @@ static const struct sdhci_tegra_soc_data soc_data_tegra124 = { | |||
1087 | }; | 1080 | }; |
1088 | 1081 | ||
1089 | static const struct sdhci_ops tegra210_sdhci_ops = { | 1082 | static const struct sdhci_ops tegra210_sdhci_ops = { |
1090 | .get_ro = tegra_sdhci_get_ro, | ||
1091 | .read_w = tegra_sdhci_readw, | 1083 | .read_w = tegra_sdhci_readw, |
1092 | .write_w = tegra210_sdhci_writew, | 1084 | .write_w = tegra210_sdhci_writew, |
1093 | .write_l = tegra_sdhci_writel, | 1085 | .write_l = tegra_sdhci_writel, |
@@ -1120,7 +1112,6 @@ static const struct sdhci_tegra_soc_data soc_data_tegra210 = { | |||
1120 | }; | 1112 | }; |
1121 | 1113 | ||
1122 | static const struct sdhci_ops tegra186_sdhci_ops = { | 1114 | static const struct sdhci_ops tegra186_sdhci_ops = { |
1123 | .get_ro = tegra_sdhci_get_ro, | ||
1124 | .read_w = tegra_sdhci_readw, | 1115 | .read_w = tegra_sdhci_readw, |
1125 | .write_l = tegra_sdhci_writel, | 1116 | .write_l = tegra_sdhci_writel, |
1126 | .set_clock = tegra_sdhci_set_clock, | 1117 | .set_clock = tegra_sdhci_set_clock, |