MIPS: bcm63xx: nvram: Use nvram structure definition from header file
authorSimon Arlott <[email protected]>
Sun, 13 Dec 2015 22:46:15 +0000 (22:46 +0000)
committerRalf Baechle <[email protected]>
Sun, 24 Jan 2016 02:48:05 +0000 (03:48 +0100)
commit5a8b0b13b66608650e41994f4b9d3c8b9d258e8f
tree7dfc9fce0e7e437be0931315807108b62490f5a2
parent3271e6103189c5294acb06ffa504cc5495457fbf
MIPS: bcm63xx: nvram: Use nvram structure definition from header file

Use the common definition of the nvram structure from the header file
include/linux/bcm963xx_nvram.h instead of maintaining a separate copy.

Read the version 5 size of nvram data from memory and then call the
new checksum verification function from the header file.

Signed-off-by: Simon Arlott <[email protected]>
Cc: David Woodhouse <[email protected]>
Cc: Brian Norris <[email protected]>
Cc: Kevin Cernekee <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Jonas Gorski <[email protected]>
Cc: Linux Kernel Mailing List <[email protected]>
Cc: MIPS Mailing List <[email protected]>
Cc: MTD Maling List <[email protected]>
Patchwork: https://patchwork.linux-mips.org/patch/11831/
Signed-off-by: Ralf Baechle <[email protected]>
arch/mips/bcm63xx/nvram.c