summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-03-16 22:44:13 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-03-16 22:44:13 +0000
commit1c2a48249f00e46981f2fe00a11e507a64b5f1ea (patch)
tree134026a443639ae833d023bb85cffbc3a3da26e2
parent855d5c40bfe9c6907938bc9f222cfa53514f4706 (diff)
Actually attach panel (if we have one).
ok patrick@
-rw-r--r--sys/dev/ic/anxdp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/ic/anxdp.c b/sys/dev/ic/anxdp.c
index dda17dbad5c..db3bd540fd1 100644
--- a/sys/dev/ic/anxdp.c
+++ b/sys/dev/ic/anxdp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: anxdp.c,v 1.2 2020/03/16 21:51:25 kettenis Exp $ */
+/* $OpenBSD: anxdp.c,v 1.3 2020/03/16 22:44:12 kettenis Exp $ */
/* $NetBSD: anx_dp.c,v 1.2 2020/01/04 12:08:32 jmcneill Exp $ */
/*-
* Copyright (c) 2019 Jonathan A. Kollasch <jakllsch@kollasch.net>
@@ -374,6 +374,12 @@ anxdp_bridge_attach(struct drm_bridge *bridge)
if (error != 0)
return error;
+ if (sc->sc_panel != NULL) {
+ error = drm_panel_attach(sc->sc_panel, connector);
+ if (error != 0)
+ return error;
+ }
+
return drm_connector_register(connector);
}