MIPS: BCM63XX: fix nvram checksum calculation
authorJonas Gorski <jonas.gorski@gmail.com>
Sun, 11 Nov 2012 12:22:34 +0000 (12:22 +0000)
committerJohn Crispin <blogic@openwrt.org>
Wed, 12 Dec 2012 17:57:49 +0000 (18:57 +0100)
commitce8f0d0607bcad3ec0e8599be80353204427093e
tree9d5547b44b31086b498ac83045e3b3dc847836a2
parent2da4c74dc3711275e82856e62884c99f7a45f541
MIPS: BCM63XX: fix nvram checksum calculation

The current checksum calculation code does nothing except checking that
the first byte of nvram is 0 without actually checking the checksum.

Implement the correct checksum calculation by calculating the crc32 with
the checksum field set to 0.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Patchwork: http://patchwork.linux-mips.org/patch/4540
arch/mips/bcm63xx/nvram.c