From 45f1db8db9d1280dff51cdfb680bff2754195483 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Sat, 28 May 2005 00:00:08 +0000 Subject: Re-implement the power management. There's two choices when fb is or isn't loaded as we treat ourselves as a PCI driver in the latter case. If we are a PCI driver, then register the suspend/resume functions directly. If not, then we register as a sysdev and pick up the suspend/resume actions and pump them down into a generic *power function. It'll be nice when this little mess is sorted out with regard to being a real PCI driver ;-/ --- linux-core/i915_drv.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linux-core/i915_drv.c') diff --git a/linux-core/i915_drv.c b/linux-core/i915_drv.c index d09b9d43..51bea892 100644 --- a/linux-core/i915_drv.c +++ b/linux-core/i915_drv.c @@ -71,6 +71,7 @@ static struct drm_driver driver = { .postinit = postinit, .version = version, .ioctls = i915_ioctls, + .power = i915_power, .fops = { .owner = THIS_MODULE, .open = drm_open, @@ -84,6 +85,8 @@ static struct drm_driver driver = { .name = DRIVER_NAME, .id_table = pciidlist, .probe = probe, + .resume = i915_resume, + .suspend = i915_suspend, .remove = __devexit_p(drm_cleanup_pci), } }; -- cgit v1.2.3