]> git.baikalelectronics.ru Git - kernel.git/commit
SSB: Fix nvram_get on BCM47xx platform
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 27 Nov 2010 18:26:32 +0000 (19:26 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 16 Dec 2010 18:11:00 +0000 (18:11 +0000)
commitc2e9f332e8303fe603850e4b98643f586a1d22f3
treeb110a169f55befc5a0b8ed112562efa8ec511874
parentc6536f4bf18a27fa3f0ab00fc3db64a2de25a12b
SSB: Fix nvram_get on BCM47xx platform

The nvram_get function was never in the mainline kernel, it only existed in
an external OpenWrt patch. Use nvram_getenv function, which is in mainline
and use an include instead of an extra function declaration.  et0macaddr
contains the mac address in text from like 00:11:22:33:44:55. We have to
parse it before adding it into macaddr.

nvram_parse_macaddr will be merged into asm/mach-bcm47xx/nvram.h through
the MIPS git tree and will be available soon. It will not build now without
nvram_parse_macaddr, but it hasn't before either.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
To: linux-mips@linux-mips.org
Cc: mb@bu3sch.de
Cc: netdev@vger.kernel.org
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Michael Buesch <mb@bu3sch.de>
Patchwork: https://patchwork.linux-mips.org/patch/1849/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/linux/ssb/ssb_driver_gige.h