diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2019-01-15 15:18:56 +1100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-22 10:21:43 +0100 |
commit | a156c7ba669c65b55c7afcc3994e1199cc0cad47 (patch) | |
tree | b97c3343d57f59a026dbcac89060b3fcdbf4beb5 /include/linux/nvram.h | |
parent | m68k/atari: Implement arch_nvram_ops struct (diff) | |
download | linux-dev-a156c7ba669c65b55c7afcc3994e1199cc0cad47.tar.xz linux-dev-a156c7ba669c65b55c7afcc3994e1199cc0cad47.zip |
powerpc: Replace nvram_* extern declarations with standard header
Remove the nvram_read_byte() and nvram_write_byte() declarations in
powerpc/include/asm/nvram.h and use the cross-platform static functions
in linux/nvram.h instead.
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>
Diffstat (limited to 'include/linux/nvram.h')
-rw-r--r-- | include/linux/nvram.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/nvram.h b/include/linux/nvram.h index a1e01dc89759..79431dab87a1 100644 --- a/include/linux/nvram.h +++ b/include/linux/nvram.h @@ -15,8 +15,11 @@ extern const struct nvram_ops arch_nvram_ops; static inline ssize_t nvram_get_size(void) { +#ifdef CONFIG_PPC +#else if (arch_nvram_ops.get_size) return arch_nvram_ops.get_size(); +#endif return -ENODEV; } |