brcm63xx: fix platform gpio lookups for gpios < 32
authorjogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 18 Jan 2016 10:46:50 +0000 (10:46 +0000)
committerjogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 18 Jan 2016 10:46:50 +0000 (10:46 +0000)
commitd0f4c2868f6b7500565484d2568d48d8383330b0
tree44e4fb4c560eaf492eed28f62ea334dcf5fada86
parent5d4b94475e508272c11f0649db43af66bceda360
brcm63xx: fix platform gpio lookups for gpios < 32

Overwriting static strings is never a good idea, especially expecting
identical strings to be stored in different memory locations.

This caused the lookups to always return the second chip's name. Fix
this by just initializing the lookup with the right values, so we
don't need to modify the strings at all.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48303 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/brcm63xx/patches-4.1/377-MIPS-BCM63XX-register-lookup-for-ephy-reset-gpio.patch
target/linux/brcm63xx/patches-4.1/378-MIPS-BCM63XX-do-not-register-gpio-controller-if-pres.patch
target/linux/brcm63xx/patches-4.4/377-MIPS-BCM63XX-register-lookup-for-ephy-reset-gpio.patch
target/linux/brcm63xx/patches-4.4/378-MIPS-BCM63XX-do-not-register-gpio-controller-if-pres.patch