aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhangfei Gao <zhangfei.gao@linaro.org>2013-03-19 14:14:25 +0800
committerZhangfei Gao <zhangfei.gao@linaro.org>2013-03-19 14:40:37 +0800
commitae707a46ff09a8150f7894ea1363c3a669923587 (patch)
tree4ada1f21afef49c334c46dc2515e3e01e7833df7
parent519f37470aa4733699f88caa485d0f3995576d50 (diff)
mmc: dw_mmc: change definition of get_cd
int (*get_cd)(struct dw_mci *host, u32 slot_id) Add host info to pass priv, where contains cd pin Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
-rw-r--r--drivers/mmc/host/dw_mmc.c2
-rw-r--r--include/linux/mmc/dw_mmc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 323c5022c2ca..66c51e04adc3 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -849,7 +849,7 @@ static int dw_mci_get_cd(struct mmc_host *mmc)
if (brd->quirks & DW_MCI_QUIRK_BROKEN_CARD_DETECTION)
present = 1;
else if (brd->get_cd)
- present = !brd->get_cd(slot->id);
+ present = !brd->get_cd(slot->host, slot->id);
else
present = (mci_readl(slot->host, CDETECT) & (1 << slot->id))
== 0 ? 1 : 0;
diff --git a/include/linux/mmc/dw_mmc.h b/include/linux/mmc/dw_mmc.h
index 34be4f47293c..72b2a181c6f2 100644
--- a/include/linux/mmc/dw_mmc.h
+++ b/include/linux/mmc/dw_mmc.h
@@ -244,7 +244,7 @@ struct dw_mci_board {
int (*init)(u32 slot_id, irq_handler_t , void *);
int (*get_ro)(u32 slot_id);
- int (*get_cd)(u32 slot_id);
+ int (*get_cd)(struct dw_mci *host, u32 slot_id);
int (*get_ocr)(u32 slot_id);
int (*get_bus_wd)(u32 slot_id);
/*