MIPS: BCM47XX: Fix some very confused types and data corruption
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 6 Dec 2013 23:56:53 +0000 (18:56 -0500)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 22 Jan 2014 19:18:56 +0000 (20:18 +0100)
commit710d86f8bc4515a906799b85135e6f6962703e01
treebe41d76d378a740adf2e294d804b31192196401b
parent0ded1becc8deaea66f8837c274fd84facc257919
MIPS: BCM47XX: Fix some very confused types and data corruption

Fix nvram_read_alpha2 copying too many bytes over the ssb_sprom
structure. Also fix the arguments of the read_macaddr, although the code
was technically not wrong before due to an extra dereference.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6211/
arch/mips/bcm47xx/sprom.c