]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
OMAP:MMC: Fix slot id definition on hsmmc probe.
authorDavid Cohen <david.cohen@indt.org.br>
Thu, 31 Jan 2008 19:48:57 +0000 (15:48 -0400)
committerTony Lindgren <tony@atomide.com>
Tue, 5 Feb 2008 00:26:52 +0000 (16:26 -0800)
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@indt.org.br>
Acked-by: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/mmc/host/omap_hsmmc.c

index 8351c02233289e54ee82f53b5990ba90dbd45927..3d4a7d1b56284a11d993ee017fbeb7847da0c77e 100644 (file)
@@ -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;