Patchwork sparc: Fix incorrect comparison in of_bus_ambapp_match()

login
register
mail settings
Submitter Kristoffer Glembo
Date Feb. 15, 2010, 3:10 p.m.
Message ID <1266246628-860-1-git-send-email-kristoffer@gaisler.com>
Download mbox | patch
Permalink /patch/45390/
State Accepted
Delegated to: David Miller
Headers show

Comments

Kristoffer Glembo - Feb. 15, 2010, 3:10 p.m.
Use type instead of name in comparison.

Signed-off-by: Kristoffer Glembo <kristoffer@gaisler.com>
---
 arch/sparc/kernel/of_device_32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
David Miller - Feb. 18, 2010, 12:43 a.m.
From: Kristoffer Glembo <kristoffer@gaisler.com>
Date: Mon, 15 Feb 2010 16:10:28 +0100

> Use type instead of name in comparison.
> 
> Signed-off-by: Kristoffer Glembo <kristoffer@gaisler.com>

Applied, thank you.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/arch/sparc/kernel/of_device_32.c b/arch/sparc/kernel/of_device_32.c
index 4c26eb5..53a58b3 100644
--- a/arch/sparc/kernel/of_device_32.c
+++ b/arch/sparc/kernel/of_device_32.c
@@ -105,7 +105,7 @@  static unsigned long of_bus_sbus_get_flags(const u32 *addr, unsigned long flags)
 
 static int of_bus_ambapp_match(struct device_node *np)
 {
-	return !strcmp(np->name, "ambapp");
+	return !strcmp(np->type, "ambapp");
 }
 
 static void of_bus_ambapp_count_cells(struct device_node *child,