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 Call linux_pci_dev_destroy on detach.
details: https://anonhg.NetBSD.org/src/rev/4f4b88b13085
branches: trunk
changeset: 835323:4f4b88b13085
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 14:12:14 2018 +0000
description:
Call linux_pci_dev_destroy on detach.
diffstat:
sys/external/bsd/drm2/amdgpu/amdgpu_pci.c | 7 ++++---
sys/external/bsd/drm2/i915drm/i915_pci.c | 7 ++++---
sys/external/bsd/drm2/nouveau/nouveau_pci.c | 7 ++++---
sys/external/bsd/drm2/radeon/radeon_pci.c | 7 ++++---
4 files changed, 16 insertions(+), 12 deletions(-)
diffs (112 lines):
diff -r b8fed371ec2a -r 4f4b88b13085 sys/external/bsd/drm2/amdgpu/amdgpu_pci.c
--- a/sys/external/bsd/drm2/amdgpu/amdgpu_pci.c Mon Aug 27 14:12:00 2018 +0000
+++ b/sys/external/bsd/drm2/amdgpu/amdgpu_pci.c Mon Aug 27 14:12:14 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amdgpu_pci.c,v 1.3 2018/08/27 14:11:46 riastradh Exp $ */
+/* $NetBSD: amdgpu_pci.c,v 1.4 2018/08/27 14:12:14 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_pci.c,v 1.3 2018/08/27 14:11:46 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_pci.c,v 1.4 2018/08/27 14:12:14 riastradh Exp $");
#include <sys/types.h>
#include <sys/queue.h>
@@ -219,7 +219,8 @@
return error;
sc->sc_drm_dev = NULL;
-out: pmf_device_deregister(self);
+out: linux_pci_dev_destroy(&sc->sc_pci_dev);
+ pmf_device_deregister(self);
return 0;
}
diff -r b8fed371ec2a -r 4f4b88b13085 sys/external/bsd/drm2/i915drm/i915_pci.c
--- a/sys/external/bsd/drm2/i915drm/i915_pci.c Mon Aug 27 14:12:00 2018 +0000
+++ b/sys/external/bsd/drm2/i915drm/i915_pci.c Mon Aug 27 14:12:14 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i915_pci.c,v 1.19 2018/08/27 14:11:46 riastradh Exp $ */
+/* $NetBSD: i915_pci.c,v 1.20 2018/08/27 14:12:14 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_pci.c,v 1.19 2018/08/27 14:11:46 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_pci.c,v 1.20 2018/08/27 14:12:14 riastradh Exp $");
#include <sys/types.h>
#include <sys/queue.h>
@@ -231,7 +231,8 @@
return error;
sc->sc_drm_dev = NULL;
-out: pmf_device_deregister(self);
+out: linux_pci_dev_destroy(&sc->sc_pci_dev);
+ pmf_device_deregister(self);
return 0;
}
diff -r b8fed371ec2a -r 4f4b88b13085 sys/external/bsd/drm2/nouveau/nouveau_pci.c
--- a/sys/external/bsd/drm2/nouveau/nouveau_pci.c Mon Aug 27 14:12:00 2018 +0000
+++ b/sys/external/bsd/drm2/nouveau/nouveau_pci.c Mon Aug 27 14:12:14 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nouveau_pci.c,v 1.17 2018/08/27 14:11:46 riastradh Exp $ */
+/* $NetBSD: nouveau_pci.c,v 1.18 2018/08/27 14:12:14 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.17 2018/08/27 14:11:46 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_pci.c,v 1.18 2018/08/27 14:12:14 riastradh Exp $");
#include <sys/types.h>
#include <sys/device.h>
@@ -217,7 +217,8 @@
sc->sc_drm_dev = NULL;
out1: nvkm_device_del(&sc->sc_nv_dev);
-out0: pmf_device_deregister(self);
+out0: linux_pci_dev_destroy(&sc->sc_pci_dev);
+ pmf_device_deregister(self);
return 0;
}
diff -r b8fed371ec2a -r 4f4b88b13085 sys/external/bsd/drm2/radeon/radeon_pci.c
--- a/sys/external/bsd/drm2/radeon/radeon_pci.c Mon Aug 27 14:12:00 2018 +0000
+++ b/sys/external/bsd/drm2/radeon/radeon_pci.c Mon Aug 27 14:12:14 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: radeon_pci.c,v 1.12 2018/08/27 14:11:46 riastradh Exp $ */
+/* $NetBSD: radeon_pci.c,v 1.13 2018/08/27 14:12:14 riastradh Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeon_pci.c,v 1.12 2018/08/27 14:11:46 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeon_pci.c,v 1.13 2018/08/27 14:12:14 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "vga.h"
@@ -291,7 +291,8 @@
return error;
sc->sc_drm_dev = NULL;
-out: pmf_device_deregister(self);
+out: linux_pci_dev_destroy(&sc->sc_pci_dev);
+ pmf_device_deregister(self);
return 0;
}
Home |
Main Index |
Thread Index |
Old Index