Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sparc: Fix incorrect comparison in of_bus_ambapp_match()

Use type instead of name in comparison.

Signed-off-by: Kristoffer Glembo <kristoffer@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Kristoffer Glembo and committed by
David S. Miller
d7ecfb3c 172d2d00

+1 -1
+1 -1
arch/sparc/kernel/of_device_32.c
··· 105 105 106 106 static int of_bus_ambapp_match(struct device_node *np) 107 107 { 108 - return !strcmp(np->name, "ambapp"); 108 + return !strcmp(np->type, "ambapp"); 109 109 } 110 110 111 111 static void of_bus_ambapp_count_cells(struct device_node *child,