aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/mmci.h
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2013-05-14 08:53:10 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2013-05-22 19:07:07 -0400
commit7c0136ef773c206e242b9718740377a45747bd70 (patch)
tree3daf9f446fbfd8f5b359a57987b629202548aaf4 /drivers/mmc/host/mmci.h
parent1fd83f0ecf87e33ab560e8229842cf10f91552ee (diff)
ARM: 7721/1: mmc: mmci: Fixup regulator handling for vqmmc
We can not rely on regulator_is_enabled to decide whether to enable|disable the regulator. It would mean that the reference counter for it is not balanced properly. Instead keep track of our internal state by using a new flag in the host struct, so we can take correct decisions. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mmc/host/mmci.h')
-rw-r--r--drivers/mmc/host/mmci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/host/mmci.h b/drivers/mmc/host/mmci.h
index 1f33ad5333a0..1383c9ce2646 100644
--- a/drivers/mmc/host/mmci.h
+++ b/drivers/mmc/host/mmci.h
@@ -183,6 +183,7 @@ struct mmci_host {
183 unsigned int cclk; 183 unsigned int cclk;
184 u32 pwr_reg; 184 u32 pwr_reg;
185 u32 clk_reg; 185 u32 clk_reg;
186 bool vqmmc_enabled;
186 struct mmci_platform_data *plat; 187 struct mmci_platform_data *plat;
187 struct variant_data *variant; 188 struct variant_data *variant;
188 189