fdt: fix setting MAC addresses for multiple interfaces
authorLev Iserovich <Lev.Iserovich@deshawresearch.com>
Thu, 7 Jan 2016 23:04:16 +0000 (18:04 -0500)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 3 May 2016 22:52:10 +0000 (17:52 -0500)
commita434fd1d282fd32d81296c6d4c2e0911f6e488b3
treef0084393ec6358e49e2e18b6f11e01d5900e470a
parente96e064f51139c4af39f14499564ef76e40bbc29
fdt: fix setting MAC addresses for multiple interfaces

For multiple ethernet interfaces the FDT offset of '/aliases' will change as we
are adding MAC addresses to the FDT.
Therefore only the first interface ('ethernet0') will get properly updated in
the FDT, with the rest getting FDT errors when we try to set their MAC address.

Signed-off-by: Lev Iserovich <iserovil@deshawresearch.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
common/fdt_support.c