libdt: support "partitions" subnode on mtd devices
In case there is an additional "partitions" subnode between the device
itself and its partitions like /soc/spi@?/mram@?/partitions/partition@?
also try the parent of the parent before giving up finding the device
node.

See kernel docs for reference:
  Documentation/devicetree/bindings/mtd/partition.txt

Signed-off-by: Bastian Stender <bst@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 791a240 commit ea1d08e26b73a4855165ed56043fa439ff9948cb
@Bastian Stender Bastian Stender authored on 29 Mar 2017
Sascha Hauer committed on 31 Mar 2017
Showing 1 changed file
View
src/libdt.c