diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2005-05-28 00:00:08 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2005-05-28 00:00:08 +0000 |
commit | 45f1db8db9d1280dff51cdfb680bff2754195483 (patch) | |
tree | a8ed0391f5efad8ddb8c057f23fc2cd79fa8f7ce /linux-core/i915_drv.c | |
parent | 4a84416c458027462ee6112a5fa442415597f6c2 (diff) |
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 ;-/
Diffstat (limited to 'linux-core/i915_drv.c')
-rw-r--r-- | linux-core/i915_drv.c | 3 |
1 files changed, 3 insertions, 0 deletions
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), } }; |