diff options
Diffstat (limited to 'drivers/of/of_path.c')
-rw-r--r-- | drivers/of/of_path.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/of/of_path.c b/drivers/of/of_path.c index 20eb771e6c..6a2d634dcf 100644 --- a/drivers/of/of_path.c +++ b/drivers/of/of_path.c @@ -148,6 +148,9 @@ int of_find_path(struct device_node *node, const char *propname, char **outpath) device_detect(op.dev); + if (list_is_singular(&op.dev->cdevs)) + op.cdev = list_first_entry(&op.dev->cdevs, struct cdev, devices_list); + i = 1; while (1) { |