diff options
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/of_path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/of_path.c b/drivers/of/of_path.c index 946b9c7aa1..e0b2dc1247 100644 --- a/drivers/of/of_path.c +++ b/drivers/of/of_path.c @@ -66,7 +66,7 @@ static int __of_find_path(struct device_node *node, const char *part, char **out return -ENODEV; } - if (!dev->driver) + if (dev->bus && !dev->driver) return -ENODEV; device_detect(dev); |