aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/rtas.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/rtas.c')
-rw-r--r--arch/powerpc/kernel/rtas.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c
index 10e10be324c9..14353b8789dd 100644
--- a/arch/powerpc/kernel/rtas.c
+++ b/arch/powerpc/kernel/rtas.c
@@ -668,15 +668,14 @@ static int rtas_ibm_suspend_me(struct rtas_args *args)
668 int i; 668 int i;
669 long state; 669 long state;
670 long rc; 670 long rc;
671 unsigned long dummy; 671 unsigned long retbuf[PLPAR_HCALL_BUFSIZE];
672
673 struct rtas_suspend_me_data data; 672 struct rtas_suspend_me_data data;
674 673
675 /* Make sure the state is valid */ 674 /* Make sure the state is valid */
676 rc = plpar_hcall(H_VASI_STATE, 675 rc = plpar_hcall(H_VASI_STATE, retbuf,
677 ((u64)args->args[0] << 32) | args->args[1], 676 ((u64)args->args[0] << 32) | args->args[1]);
678 0, 0, 0, 677
679 &state, &dummy, &dummy); 678 state = retbuf[0];
680 679
681 if (rc) { 680 if (rc) {
682 printk(KERN_ERR "rtas_ibm_suspend_me: vasi_state returned %ld\n",rc); 681 printk(KERN_ERR "rtas_ibm_suspend_me: vasi_state returned %ld\n",rc);