ppc4xx/fdt/flash: Fix bug in fdt_fixup_nor_flash_node()
authorStefan Roese <sr@denx.de>
Fri, 24 Sep 2010 11:51:50 +0000 (13:51 +0200)
committerStefan Roese <sr@denx.de>
Mon, 4 Oct 2010 09:19:49 +0000 (11:19 +0200)
commit2778a01431973b8474e48d5da99a76405a3b421e
treef17441e07111c8a457de6fcb65704b621e1f1bcc
parentc96be63aabb49fa2fc95de6b1aae13e91d8e3d10
ppc4xx/fdt/flash: Fix bug in fdt_fixup_nor_flash_node()

This patch fixes a bug in fdt_fixup_nor_flash_node() when the reg
property has multiple reg tuples, like:

reg = <0 0x00000000 0x04000000
       0 0x04000000 0x04000000>;

In this case this function did not update the reg property correctly.

Signed-off-by: Stefan Roese <sr@denx.de>
common/fdt_support.c