9
0
Fork 0

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:
Sascha Hauer 2014-04-09 15:16:34 +02:00
parent 12c7f5d560
commit 66d0f93d5c
1 changed files with 3 additions and 0 deletions

View File

@ -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) {