From: David Cohen Date: Thu, 31 Jan 2008 19:48:57 +0000 (-0400) Subject: OMAP:MMC: Fix slot id definition on hsmmc probe. X-Git-Tag: v2.6.25-omap1~203 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=8fde87fc1f4ba8fb484f68f390bc5140f1cc564e;p=linux-2.6-omap-h63xx.git 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 --- 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;