From 8fde87fc1f4ba8fb484f68f390bc5140f1cc564e Mon Sep 17 00:00:00 2001 From: David Cohen Date: Thu, 31 Jan 2008 15:48:57 -0400 Subject: [PATCH] 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: David Cohen Acked-by: Carlos Eduardo Aguiar Signed-off-by: Tony Lindgren --- drivers/mmc/host/omap_hsmmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 8351c022332..3d4a7d1b562 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; -- 2.41.1