Skip to content

Commit

Permalink
sparc: Fix incorrect comparison in of_bus_ambapp_match()
Browse files Browse the repository at this point in the history
Use type instead of name in comparison.

Signed-off-by: Kristoffer Glembo <kristoffer@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Kristoffer Glembo authored and David S. Miller committed Feb 18, 2010
1 parent 172d2d0 commit d7ecfb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc/kernel/of_device_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d7ecfb3

Please sign in to comment.