diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-04-09 15:16:34 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-04-28 11:31:39 +0200 |
commit | 66d0f93d5ca372b985dc61d01177fdc5f88392b4 (patch) | |
tree | e54f2f794845869438a503676ef59c9b6486f8bd /drivers/of/of_path.c | |
parent | 12c7f5d560799ff57cf4acc23f056ad7962a040e (diff) | |
download | barebox-66d0f93d5ca372b985dc61d01177fdc5f88392b4.tar.gz barebox-66d0f93d5ca372b985dc61d01177fdc5f88392b4.tar.xz |
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>
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) { |