deregister with pmf on detach
This commit is contained in:
parent
7dfbfaa8ed
commit
00081f593e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue