]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4b937dda5ce6c0643652e5d28b3115752a853e1c
treeddf105932259ac4a1dbe64a2e5120729f58a330d
parentc10e77b22f8179b9dc4eb377febd3770515b8bf5
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