deregister with pmf on detach

This commit is contained in:
jmcneill 2009-09-27 12:59:38 +00:00
parent 7dfbfaa8ed
commit 00081f593e
1 changed files with 9 additions and 1 deletions

View File

@ -203,8 +203,16 @@ i915drm_attach(device_t parent, device_t self, void *aux)
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