arm: boards: phytec-som-am335x: Fix mac overwrite from state
state_read_mac() returns 0 on success so mac never was overwritten.
Fix this and add check for valid mac address.

Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 9643f3d commit 425d1c404d6b5c366e563d166b41dafcea4d166a
@Teresa Remmet Teresa Remmet authored on 20 Nov 2018
Sascha Hauer committed on 21 Nov 2018
Showing 1 changed file
View
arch/arm/boards/phytec-som-am335x/board.c