diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-03-29 04:28:51 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 04:54:41 -0400 |
commit | a8b8814bdfe3bb2bdfa23722de947bad8283037c (patch) | |
tree | c837f0b89ce94e9364a23751ce9609762f71dddb /arch | |
parent | ded220bd8f0823771fc0a9bdf7f5bcbe543197b6 (diff) |
[SPARC]: Use strcasecmp for OFW property name comparisons.
This allows us to simplify sharing code with powerpc which
has properties that have various forms of capitalization
when on the sparc64 side the property is all lower-case.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc/kernel/prom.c | 4 | ||||
-rw-r--r-- | arch/sparc64/kernel/prom.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/sparc/kernel/prom.c b/arch/sparc/kernel/prom.c index 9ddf6035915c..eed140b3c739 100644 --- a/arch/sparc/kernel/prom.c +++ b/arch/sparc/kernel/prom.c | |||
@@ -158,7 +158,7 @@ struct property *of_find_property(const struct device_node *np, | |||
158 | struct property *pp; | 158 | struct property *pp; |
159 | 159 | ||
160 | for (pp = np->properties; pp != 0; pp = pp->next) { | 160 | for (pp = np->properties; pp != 0; pp = pp->next) { |
161 | if (strcmp(pp->name, name) == 0) { | 161 | if (strcasecmp(pp->name, name) == 0) { |
162 | if (lenp != 0) | 162 | if (lenp != 0) |
163 | *lenp = pp->length; | 163 | *lenp = pp->length; |
164 | break; | 164 | break; |
@@ -242,7 +242,7 @@ int of_set_property(struct device_node *dp, const char *name, void *val, int len | |||
242 | while (*prevp) { | 242 | while (*prevp) { |
243 | struct property *prop = *prevp; | 243 | struct property *prop = *prevp; |
244 | 244 | ||
245 | if (!strcmp(prop->name, name)) { | 245 | if (!strcasecmp(prop->name, name)) { |
246 | void *old_val = prop->value; | 246 | void *old_val = prop->value; |
247 | int ret; | 247 | int ret; |
248 | 248 | ||
diff --git a/arch/sparc64/kernel/prom.c b/arch/sparc64/kernel/prom.c index 493db961a1f6..13734b50a6e8 100644 --- a/arch/sparc64/kernel/prom.c +++ b/arch/sparc64/kernel/prom.c | |||
@@ -160,7 +160,7 @@ struct property *of_find_property(struct device_node *np, const char *name, | |||
160 | struct property *pp; | 160 | struct property *pp; |
161 | 161 | ||
162 | for (pp = np->properties; pp != 0; pp = pp->next) { | 162 | for (pp = np->properties; pp != 0; pp = pp->next) { |
163 | if (strcmp(pp->name, name) == 0) { | 163 | if (strcasecmp(pp->name, name) == 0) { |
164 | if (lenp != 0) | 164 | if (lenp != 0) |
165 | *lenp = pp->length; | 165 | *lenp = pp->length; |
166 | break; | 166 | break; |
@@ -243,7 +243,7 @@ int of_set_property(struct device_node *dp, const char *name, void *val, int len | |||
243 | while (*prevp) { | 243 | while (*prevp) { |
244 | struct property *prop = *prevp; | 244 | struct property *prop = *prevp; |
245 | 245 | ||
246 | if (!strcmp(prop->name, name)) { | 246 | if (!strcasecmp(prop->name, name)) { |
247 | void *old_val = prop->value; | 247 | void *old_val = prop->value; |
248 | int ret; | 248 | int ret; |
249 | 249 | ||