Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm/dist/bsd-core deregister with pmf on de...
details: https://anonhg.NetBSD.org/src/rev/17db3c13c228
branches: trunk
changeset: 747684:17db3c13c228
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Sep 27 12:59:38 2009 +0000
description:
deregister with pmf on detach
diffstat:
sys/external/bsd/drm/dist/bsd-core/i915_drv.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 3b9ca8bfc32e -r 17db3c13c228 sys/external/bsd/drm/dist/bsd-core/i915_drv.c
--- a/sys/external/bsd/drm/dist/bsd-core/i915_drv.c Sun Sep 27 12:58:59 2009 +0000
+++ b/sys/external/bsd/drm/dist/bsd-core/i915_drv.c Sun Sep 27 12:59:38 2009 +0000
@@ -203,8 +203,16 @@
drm_attach(self, pa, i915_pciidlist);
}
+static int
+i915drm_detach(device_t self, int flags)
+{
+ pmf_device_deregister(self);
+
+ return drm_detach(self, flags);
+}
+
CFATTACH_DECL_NEW(i915drm, sizeof(struct drm_device), i915drm_probe,
- i915drm_attach, drm_detach, drm_activate);
+ i915drm_attach, i915drm_detach, drm_activate);
#ifdef _MODULE
Home |
Main Index |
Thread Index |
Old Index