diff options
Diffstat (limited to 'drivers/mci/mxs.c')
-rw-r--r-- | drivers/mci/mxs.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/mci/mxs.c b/drivers/mci/mxs.c index afd6a56397..5e9f17def8 100644 --- a/drivers/mci/mxs.c +++ b/drivers/mci/mxs.c @@ -542,6 +542,13 @@ static void mxs_mci_info(struct device_d *hw_dev) printf("\n"); } +static int mxs_mmc_detect(struct device_d *dev) +{ + struct mxs_mci_host *mxs_mci = dev->priv; + + return mci_detect_card(&mxs_mci->host); +} + static int mxs_mci_probe(struct device_d *hw_dev) { struct resource *iores; @@ -577,6 +584,8 @@ static int mxs_mci_probe(struct device_d *hw_dev) mci_of_parse(host); } + hw_dev->detect = mxs_mmc_detect; + mxs_mci->clk = clk_get(hw_dev, NULL); if (IS_ERR(mxs_mci->clk)) return PTR_ERR(mxs_mci->clk); |