diff options
author | Trent Piepho <tpiepho@kymetacorp.com> | 2015-12-17 00:52:00 +0000 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-01-08 08:29:29 +0100 |
commit | 51e97d11dc81e12c2d8bddc1e79f6d40de49f3de (patch) | |
tree | 3a269b210d17f9170c7e32c638ef966ca02502b6 /common/partitions | |
parent | 91adf62feb05559b1f1a1106a998ef4b23a577bf (diff) | |
download | barebox-51e97d11dc81e12c2d8bddc1e79f6d40de49f3de.tar.gz barebox-51e97d11dc81e12c2d8bddc1e79f6d40de49f3de.tar.xz |
of_path: Fix bug with partitions, simply code
In commit 75b682795eafb2385556a9642f09e0af96a1264a using a path that
has a partition description broke.
Fix this and simpfy the code some.
There is no need to loop over each string in the path property: it's
defined to have at most one parition description, no extant dts has
more than one, and how it would handle more than one didn't make sense
anyway.
Once not looping, __of_find_path() just needs the partition
description text, not both the original node and property name to look
it up from.
When using a partition description, don't lookup the cdev of the node
just to replace it with the partition's cdev.
Signed-off-by: Trent Piepho <tpiepho@kymetacorp.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/partitions')
0 files changed, 0 insertions, 0 deletions