diff options
Diffstat (limited to 'arch/sparc/kernel/prom.c')
-rw-r--r-- | arch/sparc/kernel/prom.c | 6 |
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 | ||
193 | int of_n_addr_cells(struct device_node *np) | 193 | int 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 | ||
208 | int of_n_size_cells(struct device_node *np) | 208 | int 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; |