aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries/nvram.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-07-29 01:28:20 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-11-29 23:31:51 -0500
commit4e7c77a385efac81d6677a4a761b1b66cd2cb59e (patch)
tree1335c5cdf9529e656043fc6f92bffdb67e2f2532 /arch/powerpc/platforms/pseries/nvram.c
parent74d51d029818eca9d1aec22dd2895e269c0044b1 (diff)
powerpc/nvram: More flexible nvram_create_partition()
Replace nvram_create_os_partition() with a variant that takes the partition name, signature and size as arguments. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries/nvram.c')
-rw-r--r--arch/powerpc/platforms/pseries/nvram.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/pseries/nvram.c b/arch/powerpc/platforms/pseries/nvram.c
index f4e4c06284b4..2a1ef5c25344 100644
--- a/arch/powerpc/platforms/pseries/nvram.c
+++ b/arch/powerpc/platforms/pseries/nvram.c
@@ -22,14 +22,14 @@
22#include <asm/prom.h> 22#include <asm/prom.h>
23#include <asm/machdep.h> 23#include <asm/machdep.h>
24 24
25/* Max bytes to read/write in one go */
26#define NVRW_CNT 0x20
27
25static unsigned int nvram_size; 28static unsigned int nvram_size;
26static int nvram_fetch, nvram_store; 29static int nvram_fetch, nvram_store;
27static char nvram_buf[NVRW_CNT]; /* assume this is in the first 4GB */ 30static char nvram_buf[NVRW_CNT]; /* assume this is in the first 4GB */
28static DEFINE_SPINLOCK(nvram_lock); 31static DEFINE_SPINLOCK(nvram_lock);
29 32
30/* Max bytes to read/write in one go */
31#define NVRW_CNT 0x20
32
33static ssize_t pSeries_nvram_read(char *buf, size_t count, loff_t *index) 33static ssize_t pSeries_nvram_read(char *buf, size_t count, loff_t *index)
34{ 34{
35 unsigned int i; 35 unsigned int i;