From: jsg Date: Fri, 8 May 2015 04:47:27 +0000 (+0000) Subject: Add missing sabresd case statements. As sabresd_devs[] includes imxgpio X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d34a19372b7fc7efd5847f343853af464f72990c;p=openbsd Add missing sabresd case statements. As sabresd_devs[] includes imxgpio an attempt to boot on sabresd would have tried to deref NULL function pointers. --- 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: