Add missing sabresd case statements. As sabresd_devs[] includes imxgpio
authorjsg <jsg@openbsd.org>
Fri, 8 May 2015 04:47:27 +0000 (04:47 +0000)
committerjsg <jsg@openbsd.org>
Fri, 8 May 2015 04:47:27 +0000 (04:47 +0000)
an attempt to boot on sabresd would have tried to deref NULL function
pointers.

sys/arch/armv7/imx/imxgpio.c

index fa1924e..de866d7 100644 (file)
@@ -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 <drahn@openbsd.org>
  * Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se>
@@ -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: