From 3471aff0cdf2f3dfcb5c61ba7e867832d43a8c26 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Fri, 8 May 2015 04:47:28 +0000 Subject: Add missing sabresd case statements. As sabresd_devs[] includes imxgpio an attempt to boot on sabresd would have tried to deref NULL function pointers. --- sys/arch/armv7/imx/imxgpio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/arch/armv7/imx/imxgpio.c b/sys/arch/armv7/imx/imxgpio.c index fa1924edd72..de866d70a39 100644 --- a/sys/arch/armv7/imx/imxgpio.c +++ b/sys/arch/armv7/imx/imxgpio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxgpio.c,v 1.5 2015/05/08 03:38:26 jsg Exp $ */ +/* $OpenBSD: imxgpio.c,v 1.6 2015/05/08 04:47:27 jsg Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * Copyright (c) 2012-2013 Patrick Wildt @@ -106,6 +106,7 @@ imxgpio_match(struct device *parent, void *v, void *aux) case BOARD_ID_IMX6_NOVENA: case BOARD_ID_IMX6_PHYFLEX: case BOARD_ID_IMX6_SABRELITE: + case BOARD_ID_IMX6_SABRESD: case BOARD_ID_IMX6_UDOO: case BOARD_ID_IMX6_UTILITE: case BOARD_ID_IMX6_WANDBOARD: @@ -134,6 +135,7 @@ imxgpio_attach(struct device *parent, struct device *self, void *args) case BOARD_ID_IMX6_NOVENA: case BOARD_ID_IMX6_PHYFLEX: case BOARD_ID_IMX6_SABRELITE: + case BOARD_ID_IMX6_SABRESD: case BOARD_ID_IMX6_UDOO: case BOARD_ID_IMX6_UTILITE: case BOARD_ID_IMX6_WANDBOARD: -- cgit v1.2.3