]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
fdt: fix incorrect placement of partition information for atmel_nand
authorLothar Waßmann <LW@KARO-electronics.de>
Tue, 23 Jun 2015 10:52:51 +0000 (12:52 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 26 Jun 2015 06:07:22 +0000 (08:07 +0200)
commit7a172ae7a3fc439c4639605e6bf2e6205dd02fcd
treec721907d4b35b85eaee9e28cffde4ca607d1e0f3
parent4fbc506352390c8f44ab1def939bf4fe952bc616
fdt: fix incorrect placement of partition information for atmel_nand

fdt_node_set_part_info() blindly assumes, that the first child of the
given node must be the 'partitions' node where to put the part info.
In case of atmel_nand this node is actually the NFC node.

Use the Linux kernel logic skipping any node that has a 'compatible'
property prevent adding the partitions to a wrong node or deleting the
wrong parent node.
common/fdt_support.c