]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: BCM47xx: Fix nvram_getenv return value.
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 2 Aug 2010 21:56:22 +0000 (23:56 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 5 Aug 2010 12:26:31 +0000 (13:26 +0100)
commit29c47fdd9e127fa594a3645f19baed72368721aa
treef7aa65b0c9fde6cba390a1a38acdeaba2f91556e
parent89a64fab5bc64f68fa726b768cc8eebd80e43618
MIPS: BCM47xx: Fix nvram_getenv return value.

Nvram_getenv should behave like cfe_getenv. cfe_getenv returns 0 on
success and -9 if the value was not found. If the input was wrong -8
will be returned by cfe_getenv.  Change nvram_getenv to do the same.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Cc: Waldemar Brodkorb <wbx@openadk.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1520/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/bcm47xx/nvram.c
arch/mips/include/asm/mach-bcm47xx/nvram.h