aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/prom.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-03-29 03:47:23 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 04:54:22 -0400
commit8271f04242af8ddf8390f289cd6ef78fb3e3c6d9 (patch)
tree5e4cd7a1889931f6cea5f994c6cb06c9bf120a4c /arch/sparc/kernel/prom.c
parent644923d4a5f117d437aefd47688d1141cc8361ed (diff)
[SPARC]: constify of_get_property return: arch/sparc
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/prom.c')
-rw-r--r--arch/sparc/kernel/prom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sparc/kernel/prom.c b/arch/sparc/kernel/prom.c
index 2cc302b6bec0..8359d00a2489 100644
--- a/arch/sparc/kernel/prom.c
+++ b/arch/sparc/kernel/prom.c
@@ -37,7 +37,7 @@ int of_device_is_compatible(struct device_node *device, const char *compat)
37 const char* cp; 37 const char* cp;
38 int cplen, l; 38 int cplen, l;
39 39
40 cp = (char *) of_get_property(device, "compatible", &cplen); 40 cp = of_get_property(device, "compatible", &cplen);
41 if (cp == NULL) 41 if (cp == NULL)
42 return 0; 42 return 0;
43 while (cplen > 0) { 43 while (cplen > 0) {
@@ -192,7 +192,7 @@ EXPORT_SYMBOL(of_getintprop_default);
192 192
193int of_n_addr_cells(struct device_node *np) 193int of_n_addr_cells(struct device_node *np)
194{ 194{
195 int* ip; 195 const int* ip;
196 do { 196 do {
197 if (np->parent) 197 if (np->parent)
198 np = np->parent; 198 np = np->parent;
@@ -207,7 +207,7 @@ EXPORT_SYMBOL(of_n_addr_cells);
207 207
208int of_n_size_cells(struct device_node *np) 208int of_n_size_cells(struct device_node *np)
209{ 209{
210 int* ip; 210 const int* ip;
211 do { 211 do {
212 if (np->parent) 212 if (np->parent)
213 np = np->parent; 213 np = np->parent;