diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc/kernel/prom.c | 2 | ||||
-rw-r--r-- | arch/sparc64/kernel/prom.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/prom.c b/arch/sparc/kernel/prom.c index 8359d00a2489..d2a8297d56fa 100644 --- a/arch/sparc/kernel/prom.c +++ b/arch/sparc/kernel/prom.c | |||
@@ -170,7 +170,7 @@ EXPORT_SYMBOL(of_find_property); | |||
170 | * Find a property with a given name for a given node | 170 | * Find a property with a given name for a given node |
171 | * and return the value. | 171 | * and return the value. |
172 | */ | 172 | */ |
173 | void *of_get_property(struct device_node *np, const char *name, int *lenp) | 173 | const void *of_get_property(struct device_node *np, const char *name, int *lenp) |
174 | { | 174 | { |
175 | struct property *pp = of_find_property(np,name,lenp); | 175 | struct property *pp = of_find_property(np,name,lenp); |
176 | return pp ? pp->value : NULL; | 176 | return pp ? pp->value : NULL; |
diff --git a/arch/sparc64/kernel/prom.c b/arch/sparc64/kernel/prom.c index 25b70368973c..493db961a1f6 100644 --- a/arch/sparc64/kernel/prom.c +++ b/arch/sparc64/kernel/prom.c | |||
@@ -174,7 +174,7 @@ EXPORT_SYMBOL(of_find_property); | |||
174 | * Find a property with a given name for a given node | 174 | * Find a property with a given name for a given node |
175 | * and return the value. | 175 | * and return the value. |
176 | */ | 176 | */ |
177 | void *of_get_property(struct device_node *np, const char *name, int *lenp) | 177 | const void *of_get_property(struct device_node *np, const char *name, int *lenp) |
178 | { | 178 | { |
179 | struct property *pp = of_find_property(np,name,lenp); | 179 | struct property *pp = of_find_property(np,name,lenp); |
180 | return pp ? pp->value : NULL; | 180 | return pp ? pp->value : NULL; |