atmel_mci: check for device id we use to address the right slot
We have to check which sd card slot we use. The registered mmc_id is the the correct parameter for this. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
35c0475a6d
commit
f60f6c58e2
|
@ -369,6 +369,8 @@ static void mci_set_ios(struct mci_host *mci, struct device_d *mci_dev,
|
|||
atmel_mci_writel(host, AT91_MCI_SDCR, AT91_MCI_SDCBUS_1BIT);
|
||||
break;
|
||||
}
|
||||
atmel_mci_writel(host, AT91_MCI_SDCR, atmel_mci_readl(host, AT91_MCI_SDCR)
|
||||
| host->hw_dev->id);
|
||||
|
||||
if (clock) {
|
||||
atmel_set_clk_rate(host, clock);
|
||||
|
|
Loading…
Reference in New Issue