diff options
Diffstat (limited to 'arch/powerpc/kernel/of_platform.c')
-rw-r--r-- | arch/powerpc/kernel/of_platform.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/of_platform.c b/arch/powerpc/kernel/of_platform.c index d3497cd81e8a..b093d4b1f09c 100644 --- a/arch/powerpc/kernel/of_platform.c +++ b/arch/powerpc/kernel/of_platform.c | |||
@@ -61,8 +61,7 @@ struct of_device *of_find_device_by_node(struct device_node *np) | |||
61 | { | 61 | { |
62 | struct device *dev; | 62 | struct device *dev; |
63 | 63 | ||
64 | dev = bus_find_device(&of_platform_bus_type, | 64 | dev = bus_find_device(&platform_bus_type, NULL, np, of_dev_node_match); |
65 | NULL, np, of_dev_node_match); | ||
66 | if (dev) | 65 | if (dev) |
67 | return to_of_device(dev); | 66 | return to_of_device(dev); |
68 | return NULL; | 67 | return NULL; |