Re: [PATCH] OMAP:MMC: Fix slot id definition on hsmmc probe.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* David Cohen <david.cohen@xxxxxxxxxxx> [080131 11:51]:
> 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;

Pushing today.

Tony
-
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

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux