From ac412305e8e9374467e4ac2c371c2d4a758065fb Mon Sep 17 00:00:00 2001 From: patrick Date: Sun, 7 Nov 2021 15:59:09 +0000 Subject: [PATCH] Constify struct cfattach, not struct cfdriver. Fixes panic seen on the Pinebook Pro. --- sys/dev/fdt/simplepanel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/fdt/simplepanel.c b/sys/dev/fdt/simplepanel.c index ab70134ebe6..8465d0bc29d 100644 --- a/sys/dev/fdt/simplepanel.c +++ b/sys/dev/fdt/simplepanel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: simplepanel.c,v 1.5 2021/10/24 17:52:27 mpi Exp $ */ +/* $OpenBSD: simplepanel.c,v 1.6 2021/11/07 15:59:09 patrick Exp $ */ /* * Copyright (c) 2020 Patrick Wildt * @@ -53,12 +53,12 @@ struct simplepanel_softc { const struct drm_display_mode *sc_mode; }; -struct cfattach simplepanel_ca = { +const struct cfattach simplepanel_ca = { sizeof (struct simplepanel_softc), simplepanel_match, simplepanel_attach }; -const struct cfdriver simplepanel_cd = { +struct cfdriver simplepanel_cd = { NULL, "simplepanel", DV_DULL }; -- 2.20.1