mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] arm: boards: vscom-baltos: Run environment_initcall only on correct board
@ 2018-12-17 14:02 Teresa Remmet
  2018-12-17 14:02 ` [PATCH 2/2] arm: dts: am335x strip: Don't strip timer2 anymore Teresa Remmet
  2018-12-18  7:14 ` [PATCH 1/2] arm: boards: vscom-baltos: Run environment_initcall only on correct board Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Teresa Remmet @ 2018-12-17 14:02 UTC (permalink / raw)
  To: barebox

Check for the correct hardware before reading the eeprom.

Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
---
 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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-12-18  7:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-17 14:02 [PATCH 1/2] arm: boards: vscom-baltos: Run environment_initcall only on correct board Teresa Remmet
2018-12-17 14:02 ` [PATCH 2/2] arm: dts: am335x strip: Don't strip timer2 anymore Teresa Remmet
2018-12-18  7:14 ` [PATCH 1/2] arm: boards: vscom-baltos: Run environment_initcall only on correct board Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox