Message ID | 1266246628-860-1-git-send-email-kristoffer@gaisler.com |
---|---|
State | Accepted |
Delegated to: | David Miller |
Headers | show |
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
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,
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(-)