From: patrick Date: Sun, 7 Nov 2021 15:59:09 +0000 (+0000) Subject: Constify struct cfattach, not struct cfdriver. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ac412305e8e9374467e4ac2c371c2d4a758065fb;p=openbsd Constify struct cfattach, not struct cfdriver. Fixes panic seen on the Pinebook Pro. --- 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 };