[PATCH 1/4] MMC: atmel-mci: fix two parameters swapped
Nicolas Ferre
nicolas.ferre at atmel.com
Tue Apr 27 12:48:13 EDT 2010
Two parameters were swapped in the calls to atmci_init_slot().
Reported-by: Anders Grahn <anders.grahn at hd-wireless.se>
Signed-off-by: Nicolas Ferre <nicolas.ferre at atmel.com>
---
Previous patch comment was malformed. Please consider this one...
drivers/mmc/host/atmel-mci.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
index 4338750..321e0bf 100644
--- a/drivers/mmc/host/atmel-mci.c
+++ b/drivers/mmc/host/atmel-mci.c
@@ -1767,13 +1767,13 @@ static int __init atmci_probe(struct platform_device *pdev)
ret = -ENODEV;
if (pdata->slot[0].bus_width) {
ret = atmci_init_slot(host, &pdata->slot[0],
- MCI_SDCSEL_SLOT_A, 0);
+ 0, MCI_SDCSEL_SLOT_A);
if (!ret)
nr_slots++;
}
if (pdata->slot[1].bus_width) {
ret = atmci_init_slot(host, &pdata->slot[1],
- MCI_SDCSEL_SLOT_B, 1);
+ 1, MCI_SDCSEL_SLOT_B);
if (!ret)
nr_slots++;
}
--
1.5.6.5
More information about the linux-arm-kernel
mailing list