MIPS: BCM47XX: trim the nvram values for parsing
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 26 Dec 2012 19:53:26 +0000 (19:53 +0000)
committerJohn Crispin <blogic@openwrt.org>
Fri, 15 Feb 2013 18:01:57 +0000 (19:01 +0100)
commit924ffb7dba80f44211d4ba08157496c6e37d307a
treeddf105932259ac4a1dbe64a2e5120729f58a330d
parent111bd981e2216827aab95503596501ab71bc7a7d
MIPS: BCM47XX: trim the nvram values for parsing

Some nvram values on some devices have a newline character at the end
of the value, that caused read errors. Trim the string before reading
the number.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Patchwork: http://patchwork.linux-mips.org/patch/4745/
Signed-off-by: John Crispin <blogic@openwrt.org>
arch/mips/bcm47xx/sprom.c