[PATCH 4/5] ARM: davinci: da830: set the GPIO base to 0

From: Bartosz Golaszewski
Date: Tue Nov 20 2018 - 07:34:36 EST


From: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>

Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and
automatic base selection") broke the GPIO support on DaVinci boards
in legacy mode by allowing gpiolib to set the GPIO base automatically.

DaVinci board files use the legacy GPIO API with hard-coded GPIO line
numbers. Use the new fields in struct davinci_gpio_platform_data to
manually set the GPIO base to 0.

Fixes: 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
---
arch/arm/mach-davinci/da830.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-davinci/da830.c b/arch/arm/mach-davinci/da830.c
index 0bc5bd2665df..822d2590fbc9 100644
--- a/arch/arm/mach-davinci/da830.c
+++ b/arch/arm/mach-davinci/da830.c
@@ -759,6 +759,8 @@ static struct davinci_id da830_ids[] = {
};

static struct davinci_gpio_platform_data da830_gpio_platform_data = {
+ .no_auto_base = true,
+ .base = 0,
.ngpio = 128,
};

--
2.19.1