diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2019-01-15 07:18:56 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-22 12:21:43 +0300 |
commit | a156c7ba669c65b55c7afcc3994e1199cc0cad47 (patch) | |
tree | b97c3343d57f59a026dbcac89060b3fcdbf4beb5 /include/linux/nvram.h | |
parent | a084dbf6592c22468eb946014b2e731fb42da7a9 (diff) | |
download | linux-a156c7ba669c65b55c7afcc3994e1199cc0cad47.tar.xz |
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; } |