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.92.3 #3 (Red Hat Linux)) id 1j44r3-0002yE-VH for barebox@lists.infradead.org; Tue, 18 Feb 2020 15:32:11 +0000 From: Sascha Hauer Date: Tue, 18 Feb 2020 16:32:05 +0100 Message-Id: <20200218153205.824-1-s.hauer@pengutronix.de> MIME-Version: 1.0 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: [PATCH] ARM: i.MX: scb9328: Add missing machine protection To: Barebox List Make sure scb9328_devices_init() is only executed on the correct machine. Signed-off-by: Sascha Hauer --- arch/arm/boards/scb9328/scb9328.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boards/scb9328/scb9328.c b/arch/arm/boards/scb9328/scb9328.c index d1f741a70e..87fb6affbd 100644 --- a/arch/arm/boards/scb9328/scb9328.c +++ b/arch/arm/boards/scb9328/scb9328.c @@ -31,6 +31,9 @@ static int scb9328_devices_init(void) { + if (!of_machine_is_compatible("stx,scb9328")) + return 0; + /* CS3 becomes CS3 by clearing reset default bit 1 in FMCR */ writel(0x1, MX1_SCM_BASE_ADDR + MX1_FMCR); -- 2.25.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox