From: Stephen Rothwell Date: Tue, 27 Sep 2011 03:15:15 +0000 (+1000) Subject: Merge remote-tracking branch 'mmc/mmc-next' X-Git-Tag: next-20110927~43 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=872f6e224b518881c167108488e3c63a21de39a8;p=karo-tx-linux.git Merge remote-tracking branch 'mmc/mmc-next' Conflicts: drivers/mmc/core/core.c drivers/mmc/core/sd.c --- 872f6e224b518881c167108488e3c63a21de39a8 diff --cc arch/arm/mach-at91/at91sam9260_devices.c index 7f570b5b2a09,c49e84a39a6f..6bfcd484d434 --- a/arch/arm/mach-at91/at91sam9260_devices.c +++ b/arch/arm/mach-at91/at91sam9260_devices.c @@@ -327,10 -319,10 +327,10 @@@ void __init at91_add_device_mci(short m if (!data) return; - for (i = 0; i < ATMEL_MCI_MAX_NR_SLOTS; i++) { + for (i = 0; i < ATMCI_MAX_NR_SLOTS; i++) { if (data->slot[i].bus_width) { /* input/irq */ - if (data->slot[i].detect_pin) { + if (gpio_is_valid(data->slot[i].detect_pin)) { at91_set_gpio_input(data->slot[i].detect_pin, 1); at91_set_deglitch(data->slot[i].detect_pin, 1); }