fdt: remove unaligned access in fdt_fixup_ethernet()
authorStephen Warren <swarren@wwwdotorg.org>
Mon, 27 May 2013 18:01:19 +0000 (18:01 +0000)
committerTom Rini <trini@ti.com>
Fri, 7 Jun 2013 18:17:01 +0000 (14:17 -0400)
commit064d55f8bc8d7d205ed0be6abb6717e92eeb7cad
treea0ad2387c6404e0abd31ca7b64fcc75a24b98615
parenta0ba279ac6b6b83b48dee609d7a34fc29b520ebc
fdt: remove unaligned access in fdt_fixup_ethernet()

Some ARM compilers may emit code that makes unaligned accesses when
faced with constructs such as:

char mac[16] = "ethaddr";

Replace this with a strcpy() call instead to avoid this. strcpy() is
used here, rather than replacing all usage of the mac variable with the
string itself, since the loop itself sprintf()s to the variable each
iteration, so strcpy() is doing basically the same thing.

Reported-by: Florian Meier
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
common/fdt_support.c