diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2009-01-04 16:55:33 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-03-13 00:23:58 -0400 |
commit | 112b715e8e2f9ef7b96930888bb099ce10b4c3cc (patch) | |
tree | 1058edb8beb6dd60a794d2333e43d37cc7116f06 /include/drm/drmP.h | |
parent | 41c2e75e60200a860a74b7c84a6375c105e7437f (diff) |
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>
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r-- | include/drm/drmP.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index c91fbb68b460..533d35baa085 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -1265,7 +1265,7 @@ extern struct drm_master *drm_master_get(struct drm_master *master); | |||
1265 | extern void drm_master_put(struct drm_master **master); | 1265 | extern void drm_master_put(struct drm_master **master); |
1266 | extern int drm_get_dev(struct pci_dev *pdev, const struct pci_device_id *ent, | 1266 | extern int drm_get_dev(struct pci_dev *pdev, const struct pci_device_id *ent, |
1267 | struct drm_driver *driver); | 1267 | struct drm_driver *driver); |
1268 | extern int drm_put_dev(struct drm_device *dev); | 1268 | extern void drm_put_dev(struct drm_device *dev); |
1269 | extern int drm_put_minor(struct drm_minor **minor); | 1269 | extern int drm_put_minor(struct drm_minor **minor); |
1270 | extern unsigned int drm_debug; | 1270 | extern unsigned int drm_debug; |
1271 | 1271 | ||