summaryrefslogtreecommitdiff
path: root/arch/powerpc/sysdev/scom.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/sysdev/scom.c')
-rw-r--r--arch/powerpc/sysdev/scom.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/scom.c b/arch/powerpc/sysdev/scom.c
index 9193e12df695..10f1d9e56612 100644
--- a/arch/powerpc/sysdev/scom.c
+++ b/arch/powerpc/sysdev/scom.c
@@ -137,8 +137,7 @@ static int scom_val_get(void *data, u64 *val)
if (!scom_map_ok(ent->map))
return -EFAULT;
- *val = scom_read(ent->map, 0);
- return 0;
+ return scom_read(ent->map, 0, val);
}
DEFINE_SIMPLE_ATTRIBUTE(scom_val_fops, scom_val_get, scom_val_set,
"0x%llx\n");