Skip to contentSkip to conversation

sparc: Fix incorrect comparison in of_bus_ambapp_match()

PATCH Applied Kristoffer Glembo 2 participants 2 messages Feb 15, 2010 – Feb 18, 2010 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc: Fix incorrect comparison in of_bus_ambapp_match()

Use type instead of name in comparison.

---
 arch/sparc/kernel/of_device_32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/sparc/kernel/of_device_32.c +1 -1
index 4c26eb5..53a58b3 100644
@@ -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,
Signature · 1 line
1.6.4.1