of_path: Allow to specify path with phandle only
Instead of just allowing to specify an OF path with additional partname: property allow to specify a phandle to the partition directly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
12c7f5d560
commit
66d0f93d5c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue