Check for the correct hardware before reading the eeprom. Signed-off-by: Teresa Remmet <t.remmet@xxxxxxxxx> --- arch/arm/boards/vscom-baltos/board.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boards/vscom-baltos/board.c b/arch/arm/boards/vscom-baltos/board.c index 39f40a6061f8..c64864d43200 100644 --- a/arch/arm/boards/vscom-baltos/board.c +++ b/arch/arm/boards/vscom-baltos/board.c @@ -68,6 +68,9 @@ static int baltos_read_eeprom(void) int rc; unsigned char mac_addr[6]; + if (!of_machine_is_compatible("vscom,onrisc")) + return 0; + rc = read_file_2("/dev/eeprom0", &size, (void *)&buf, -- 2.7.4 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox