drm: claim PCI device when running in modesetting mode.
authorKristian Høgsberg <krh@bitplanet.net>
Sun, 4 Jan 2009 21:55:33 +0000 (16:55 -0500)
committerDave Airlie <airlied@redhat.com>
Fri, 13 Mar 2009 04:23:58 +0000 (14:23 +1000)
commit112b715e8e2f9ef7b96930888bb099ce10b4c3cc
tree1058edb8beb6dd60a794d2333e43d37cc7116f06
parent41c2e75e60200a860a74b7c84a6375c105e7437f
drm: claim PCI device when running in modesetting mode.

Under kernel modesetting, we manage the device at all times, regardless
of VT switching and X servers, so the only decent thing to do is to
claim the PCI device.  In that case, we call the suspend/resume hooks
directly from the pci driver hooks instead of the current class device detour.

Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/drm_stub.c
drivers/gpu/drm/drm_sysfs.c
drivers/gpu/drm/i915/i915_drv.c
include/drm/drmP.h