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 Update object reference API, n...



details:   https://anonhg.NetBSD.org/src/rev/a19ca822aa50
branches:  trunk
changeset: 835102:a19ca822aa50
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:35:41 2018 +0000

description:
Update object reference API, now with types!

diffstat:

 sys/external/bsd/drm2/nouveau/nouveau_pci.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 360d2618e2a3 -r a19ca822aa50 sys/external/bsd/drm2/nouveau/nouveau_pci.c
--- a/sys/external/bsd/drm2/nouveau/nouveau_pci.c       Mon Aug 27 07:35:31 2018 +0000
+++ b/sys/external/bsd/drm2/nouveau/nouveau_pci.c       Mon Aug 27 07:35:41 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_pci.c,v 1.12 2018/08/27 06:41:35 riastradh Exp $       */
+/*     $NetBSD: nouveau_pci.c,v 1.13 2018/08/27 07:35:41 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.12 2018/08/27 06:41:35 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_pci.c,v 1.13 2018/08/27 07:35:41 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/device.h>
@@ -41,6 +41,7 @@
 #include <drm/drmP.h>
 
 #include <core/device.h>
+#include <core/pci.h>
 
 #include "nouveau_drm.h"
 #include "nouveau_pci.h"
@@ -215,7 +216,7 @@
                return error;
        sc->sc_drm_dev = NULL;
 
-out1:  nouveau_object_ref(NULL, (void *)&sc->sc_nv_dev);
+out1:  nvkm_device_del(&sc->sc_nv_dev);
 out0:  pmf_device_deregister(self);
        return 0;
 }



Home | Main Index | Thread Index | Old Index