From: Kristoffer Glembo Date: Mon, 15 Feb 2010 15:10:28 +0000 (+0100) Subject: sparc: Fix incorrect comparison in of_bus_ambapp_match() X-Git-Tag: v2.6.33~19^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d7ecfb3c2aa155c9f6152ebe91de92067d16ba6e;p=platform%2Fkernel%2Flinux-3.10.git sparc: Fix incorrect comparison in of_bus_ambapp_match() Use type instead of name in comparison. Signed-off-by: Kristoffer Glembo Signed-off-by: David S. Miller --- 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,