diff options
author | Stephen Warren <swarren@wwwdotorg.org> | 2013-02-08 22:56:27 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-02-24 14:37:16 -0500 |
commit | 29866a98be716111016da69f2747e012843b61e4 (patch) | |
tree | 3db37008c4263001c23bee9c81040fc3a2549c41 /drivers/mmc | |
parent | ce39f9d17c14e56ea6772aa84393e6e0cc8499c4 (diff) |
mmc: bcm2835: set SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK
SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK does basically the same as
implementing struct sdhci_ops .get_timeout_clock, so simply set that
quirk and remove the custom code to simplify the driver.
Reported-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci-bcm2835.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci-bcm2835.c b/drivers/mmc/host/sdhci-bcm2835.c index 1e97b89dac66..8ffea05152c6 100644 --- a/drivers/mmc/host/sdhci-bcm2835.c +++ b/drivers/mmc/host/sdhci-bcm2835.c | |||
@@ -133,11 +133,11 @@ static struct sdhci_ops bcm2835_sdhci_ops = { | |||
133 | .read_b = bcm2835_sdhci_readb, | 133 | .read_b = bcm2835_sdhci_readb, |
134 | .get_max_clock = sdhci_pltfm_clk_get_max_clock, | 134 | .get_max_clock = sdhci_pltfm_clk_get_max_clock, |
135 | .get_min_clock = bcm2835_sdhci_get_min_clock, | 135 | .get_min_clock = bcm2835_sdhci_get_min_clock, |
136 | .get_timeout_clock = sdhci_pltfm_clk_get_max_clock, | ||
137 | }; | 136 | }; |
138 | 137 | ||
139 | static struct sdhci_pltfm_data bcm2835_sdhci_pdata = { | 138 | static struct sdhci_pltfm_data bcm2835_sdhci_pdata = { |
140 | .quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION, | 139 | .quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION | |
140 | SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK, | ||
141 | .ops = &bcm2835_sdhci_ops, | 141 | .ops = &bcm2835_sdhci_ops, |
142 | }; | 142 | }; |
143 | 143 | ||