Commit 8fde87fc authored by David Cohen's avatar David Cohen Committed by Tony Lindgren

OMAP:MMC: Fix slot id definition on hsmmc probe.

host->slot_id = (pdev->id - 1) definition is wrong. For each hsmmc host controller's
instance, the first slot always has id=0.
Signed-off-by: default avatarDavid Cohen <david.cohen@indt.org.br>
Acked-by: default avatarCarlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent dbe20580
......@@ -723,7 +723,7 @@ static int __init omap_mmc_probe(struct platform_device *pdev)
host->dma_ch = -1;
host->irq = irq;
host->id = pdev->id;
host->slot_id = pdev->id - 1;
host->slot_id = 0;
host->mapbase = res->start;
host->base = ioremap(host->mapbase, SZ_4K);
mmc->ops = &mmc_omap_ops;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment