From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZ9a2-0000M9-Fi for barebox@lists.infradead.org; Tue, 18 Dec 2018 07:14:16 +0000 Date: Tue, 18 Dec 2018 08:14:01 +0100 From: Sascha Hauer Message-ID: <20181218071401.k23zqcxq4qrvb7mc@pengutronix.de> References: <1545055330-33957-1-git-send-email-t.remmet@phytec.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1545055330-33957-1-git-send-email-t.remmet@phytec.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 1/2] arm: boards: vscom-baltos: Run environment_initcall only on correct board To: Teresa Remmet Cc: barebox@lists.infradead.org On Mon, Dec 17, 2018 at 03:02:09PM +0100, Teresa Remmet wrote: > Check for the correct hardware before reading the eeprom. > > Signed-off-by: Teresa Remmet > --- > arch/arm/boards/vscom-baltos/board.c | 3 +++ > 1 file changed, 3 insertions(+) Applied, thanks Sascha > > 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 > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox