Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/nouveau nouveau: Call nouveau_drm_devi...



details:   https://anonhg.NetBSD.org/src/rev/e9378830b476
branches:  trunk
changeset: 1028454:e9378830b476
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:05:20 2021 +0000

description:
nouveau: Call nouveau_drm_device_init.

diffstat:

 sys/external/bsd/drm2/nouveau/nouveau_pci.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r dae11305b5b9 -r e9378830b476 sys/external/bsd/drm2/nouveau/nouveau_pci.c
--- a/sys/external/bsd/drm2/nouveau/nouveau_pci.c       Sun Dec 19 11:05:12 2021 +0000
+++ b/sys/external/bsd/drm2/nouveau/nouveau_pci.c       Sun Dec 19 11:05:20 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_pci.c,v 1.30 2021/12/19 11:05:13 riastradh Exp $       */
+/*     $NetBSD: nouveau_pci.c,v 1.31 2021/12/19 11:05:20 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_pci.c,v 1.30 2021/12/19 11:05:13 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_pci.c,v 1.31 2021/12/19 11:05:20 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #if defined(__arm__) || defined(__aarch64__)
@@ -223,6 +223,13 @@
        sc->sc_pci_attached = true;
 
        /* XXX errno Linux->NetBSD */
+       error = -nouveau_drm_device_init(sc->sc_drm_dev);
+       if (error) {
+               aprint_error_dev(self, "unable to init nouveau: %d\n", error);
+               return;
+       }
+
+       /* XXX errno Linux->NetBSD */
        error = -drm_dev_register(sc->sc_drm_dev, 0);
        if (error) {
                aprint_error_dev(self, "unable to register drm: %d\n", error);



Home | Main Index | Thread Index | Old Index