aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-11-01 23:04:26 -0500
committerPaul Mackerras <paulus@samba.org>2005-11-01 23:04:26 -0500
commit19fa17e5b1d9622902c1e9a7b0f8be676f266bbe (patch)
treef8c05c770c6e7019c8e0f342db30b391547dfa73 /arch
parentf2cad7a8cdbe66d313059824d61ef1f455031566 (diff)
powerpc: Use rtas_call not call_rtas in CHRP code
The nvram driver imported from the ppc code uses call_rtas, but rtas_call is the name we are using in merged code (since ppc64 used that name, and it uses far more RTAS calls than ppc32). Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/chrp/nvram.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/chrp/nvram.c b/arch/powerpc/platforms/chrp/nvram.c
index 4ac7125aa09c..65266b46db9b 100644
--- a/arch/powerpc/platforms/chrp/nvram.c
+++ b/arch/powerpc/platforms/chrp/nvram.c
@@ -34,7 +34,8 @@ static unsigned char chrp_nvram_read(int addr)
34 return 0xff; 34 return 0xff;
35 } 35 }
36 spin_lock_irqsave(&nvram_lock, flags); 36 spin_lock_irqsave(&nvram_lock, flags);
37 if ((call_rtas("nvram-fetch", 3, 2, &done, addr, __pa(nvram_buf), 1) != 0) || 1 != done) 37 if ((rtas_call(rtas_token("nvram-fetch"), 3, 2, &done, addr,
38 __pa(nvram_buf), 1) != 0) || 1 != done)
38 ret = 0xff; 39 ret = 0xff;
39 else 40 else
40 ret = nvram_buf[0]; 41 ret = nvram_buf[0];
@@ -54,7 +55,8 @@ static void chrp_nvram_write(int addr, unsigned char val)
54 } 55 }
55 spin_lock_irqsave(&nvram_lock, flags); 56 spin_lock_irqsave(&nvram_lock, flags);
56 nvram_buf[0] = val; 57 nvram_buf[0] = val;
57 if ((call_rtas("nvram-store", 3, 2, &done, addr, __pa(nvram_buf), 1) != 0) || 1 != done) 58 if ((rtas_call(rtas_token("nvram-store"), 3, 2, &done, addr,
59 __pa(nvram_buf), 1) != 0) || 1 != done)
58 printk(KERN_DEBUG "rtas IO error storing 0x%02x at %d", val, addr); 60 printk(KERN_DEBUG "rtas IO error storing 0x%02x at %d", val, addr);
59 spin_unlock_irqrestore(&nvram_lock, flags); 61 spin_unlock_irqrestore(&nvram_lock, flags);
60} 62}