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: David Cohen <david.cohen@xxxxxxxxxxx> Acked-by: Carlos Eduardo Aguiar <carlos.aguiar@xxxxxxxxxxx> --- drivers/mmc/host/omap_hsmmc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 8351c02..3d4a7d1 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -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; -- 1.5.3.5 - To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html