summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-03-29 10:28:51 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 10:54:41 +0200
commita8b8814bdfe3bb2bdfa23722de947bad8283037c (patch)
treec837f0b89ce94e9364a23751ce9609762f71dddb /arch
parent[STRING]: Move strcasecmp/strncasecmp to lib/string.c (diff)
downloadlinux-a8b8814bdfe3bb2bdfa23722de947bad8283037c.tar.xz
linux-a8b8814bdfe3bb2bdfa23722de947bad8283037c.zip
[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.c4
-rw-r--r--arch/sparc64/kernel/prom.c4
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,
struct property *pp;
for (pp = np->properties; pp != 0; pp = pp->next) {
- if (strcmp(pp->name, name) == 0) {
+ if (strcasecmp(pp->name, name) == 0) {
if (lenp != 0)
*lenp = pp->length;
break;
@@ -242,7 +242,7 @@ int of_set_property(struct device_node *dp, const char *name, void *val, int len
while (*prevp) {
struct property *prop = *prevp;
- if (!strcmp(prop->name, name)) {
+ if (!strcasecmp(prop->name, name)) {
void *old_val = prop->value;
int ret;
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,
struct property *pp;
for (pp = np->properties; pp != 0; pp = pp->next) {
- if (strcmp(pp->name, name) == 0) {
+ if (strcasecmp(pp->name, name) == 0) {
if (lenp != 0)
*lenp = pp->length;
break;
@@ -243,7 +243,7 @@ int of_set_property(struct device_node *dp, const char *name, void *val, int len
while (*prevp) {
struct property *prop = *prevp;
- if (!strcmp(prop->name, name)) {
+ if (!strcasecmp(prop->name, name)) {
void *old_val = prop->value;
int ret;