ARM: davinci: board-da830-evm: fix GPIO lookup for MMC/SD
authorSekhar Nori <nsekhar@ti.com>
Tue, 24 Apr 2018 14:35:03 +0000 (20:05 +0530)
committerSekhar Nori <nsekhar@ti.com>
Tue, 1 May 2018 11:43:38 +0000 (17:13 +0530)
commit51e9f12163223546bd3aa9f7af6817931f980da8
tree3ef3d535350bc13411e0110fbb0066c6f237a467
parent94a82284ad4711b7f9fd78981fdc7a1cb645030b
ARM: davinci: board-da830-evm: fix GPIO lookup for MMC/SD

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: b5e1438cf98a ("ARM: davinci: da830-evm: use gpio descriptor for mmc pins")
Reported-by: David Lechner <david@lechnology.com>
Reviewed-by: David Lechner <david@lechnology.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/board-da830-evm.c