ARM: davinci: board-da850-evm: fix GPIO lookup for MMC/SD
authorSekhar Nori <nsekhar@ti.com>
Tue, 24 Apr 2018 14:35:04 +0000 (20:05 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Jun 2018 19:02:51 +0000 (04:02 +0900)
commit0bf4a2db29648e1a7df776de41b1177aa7a037f2
tree9b5f7d9576a90da1619257d6c84ac8c323730890
parent38ffd4d581ff5448926dc72fc25e1cecb817de27
ARM: davinci: board-da850-evm: fix GPIO lookup for MMC/SD

[ Upstream commit 67c6b6ff221f807180aea6dd597246f87e1dd98a ]

The GPIO chip is called davinci_gpio.0 in legacy mode. Fix it, so that
mmc can correctly lookup the wp and cp gpios. Also fix the GPIO numbers
as they are not offsets within a bank.

Note that it is the gpio-davinci driver that sets the gpiochip label to
davinci_gpio.0.

Fixes: bdf0e8364fd3 ("ARM: davinci: da850-evm: use gpio descriptor for mmc pins")
Reviewed-by: David Lechner <david@lechnology.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-davinci/board-da850-evm.c