powerpc/nvram: Enable use Generic NVRAM driver for different size chips
authorMartyn Welch <martyn.welch@gefanuc.com>
Thu, 13 Aug 2009 08:03:02 +0000 (09:03 +0100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 11 Sep 2009 06:02:11 +0000 (16:02 +1000)
commitd331d8305cba713605854aab63a000fb892353a7
tree5ee6cea2fe656d5772d79245e296c13b36f60456
parent1d6ed32226326a6e6cd67cd9ee4294bcbb0c9a15
powerpc/nvram: Enable use Generic NVRAM driver for different size chips

Remove the reliance on a staticly defined NVRAM size, allowing
platforms to support NVRAMs with sizes differing from the standard.

A fall back value is provided for platforms not supporting this extension.

Signed-off-by: Martyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/nvram.h
arch/powerpc/kernel/setup_32.c
drivers/char/generic_nvram.c