]> asedeno.scripts.mit.edu Git - linux.git/commit
powerpc: Define missing ppc_md.nvram_size for CHRP and PowerMac
authorFinn Thain <fthain@telegraphics.com.au>
Tue, 15 Jan 2019 04:18:56 +0000 (15:18 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 09:21:45 +0000 (10:21 +0100)
commitebcebc7f456c677a2a8fca31c70913fd9a983ad9
tree4a233caf9e871b0e8a22cc877feb78859d3cd528
parent7fc0ac05f3f54319f7cac19f556282d5dafad6e2
powerpc: Define missing ppc_md.nvram_size for CHRP and PowerMac

Add the nvram_size() function to those PowerPC platforms that don't already
have one: CHRP and PowerMac. This means that the ppc_md.nvram_size()
function can be called by nvram_get_size().

Since we are addressing CHRP inconsistencies here, rename chrp_nvram_read
and chrp_nvram_write, which break the naming convention used across
powerpc platforms for NVRAM accessor functions.

Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/chrp/nvram.c
arch/powerpc/platforms/powermac/nvram.c