Skip to contentSkip to conversation

mmc: atmel-mci: fix two parameters swapped

PATCH New [email protected] 1 participant 1 message May 11, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 4/17 mmc: atmel-mci: fix two parameters swapped

From: Nicolas Ferre <[email protected]>

Two parameters were swapped in the calls to atmci_init_slot().

---

 drivers/mmc/host/atmel-mci.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mmc/host/atmel-mci.c renamed from drivers/mmc/host/atmel-mci.c~mmc-atmel-mci-fix-two-parameters-swapped +2 -2
diff -puN drivers/mmc/host/atmel-mci.c~mmc-atmel-mci-fix-two-parameters-swapped drivers/mmc/host/atmel-mci.c
@@ -1751,13 +1751,13 @@ static int __init atmci_probe(struct pla
 	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++;
 	}

_