Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: OMAP1: ams-delta: Fix broken GPIO ID allocation

In order to request dynamic allocationn of GPIO IDs, a negative number
should be passed as a base GPIO ID via platform data. Unfortuntely,
commit 771e53c4d1a1 ("ARM: OMAP1: ams-delta: Drop board specific global
GPIO numbers") didn't follow that rule while switching to dynamically
allocated GPIO IDs for Amstrad Delta latches, making their IDs
overlapping with those already assigned to OMAP GPIO devices. Fix it.

Fixes: 771e53c4d1a1 ("ARM: OMAP1: ams-delta: Drop board specific global GPIO numbers")
Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Cc: stable@vger.kernel.org
Acked-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Janusz Krzysztofik and committed by
Tony Lindgren
3e2cf62e 9e98c678

+2
+2
arch/arm/mach-omap1/board-ams-delta.c
··· 182 182 183 183 static struct bgpio_pdata latch1_pdata = { 184 184 .label = LATCH1_LABEL, 185 + .base = -1, 185 186 .ngpio = LATCH1_NGPIO, 186 187 }; 187 188 ··· 220 219 221 220 static struct bgpio_pdata latch2_pdata = { 222 221 .label = LATCH2_LABEL, 222 + .base = -1, 223 223 .ngpio = LATCH2_NGPIO, 224 224 }; 225 225