aboutsummaryrefslogtreecommitdiffstats
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/scom.c b/arch/powerpc/sysdev/scom.c
index 0f6fd5d04d33..a707b24a7ddb 100644
--- a/arch/powerpc/sysdev/scom.c
+++ b/arch/powerpc/sysdev/scom.c
@@ -60,7 +60,7 @@ scom_map_t scom_map_device(struct device_node *dev, int index)
60 parent = scom_find_parent(dev); 60 parent = scom_find_parent(dev);
61 61
62 if (parent == NULL) 62 if (parent == NULL)
63 return 0; 63 return NULL;
64 64
65 /* 65 /*
66 * We support "scom-reg" properties for adding scom registers 66 * We support "scom-reg" properties for adding scom registers
@@ -83,7 +83,7 @@ scom_map_t scom_map_device(struct device_node *dev, int index)
83 size >>= 2; 83 size >>= 2;
84 84
85 if (index >= (size / (2*cells))) 85 if (index >= (size / (2*cells)))
86 return 0; 86 return NULL;
87 87
88 reg = of_read_number(&prop[index * cells * 2], cells); 88 reg = of_read_number(&prop[index * cells * 2], cells);
89 cnt = of_read_number(&prop[index * cells * 2 + cells], cells); 89 cnt = of_read_number(&prop[index * cells * 2 + cells], cells);