mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
mmc: atmel-mci: fix two parameters swapped
commit ebb1fea9b3 upstream.
Two parameters were swapped in the calls to atmci_init_slot().
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Reported-by: Anders Grahn <anders.grahn@hd-wireless.se>
Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
e053045d37
commit
85e346fae9
|
|
@ -1669,13 +1669,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++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user