diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2005-06-28 08:03:33 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2005-06-28 08:03:33 +0000 |
commit | b6b270a2607088997a0ec74cb1d618f140a382f7 (patch) | |
tree | 04bad1e8ba035c41857b9fa0a993d9d26580a0fc /shared-core/i915_pm.c | |
parent | 75ba453365380851d3297a9d553302021af923b2 (diff) |
Given that BenH says using the sysdev approach for DRM is bogus, I'll yank
the code for it, rather than introducing something that isn't going to
work 100% of the time.
Diffstat (limited to 'shared-core/i915_pm.c')
-rw-r--r-- | shared-core/i915_pm.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/shared-core/i915_pm.c b/shared-core/i915_pm.c index d2914aa4..e4bda0ce 100644 --- a/shared-core/i915_pm.c +++ b/shared-core/i915_pm.c @@ -165,29 +165,3 @@ int i915_resume( struct pci_dev *pdev ) return 0; } - -int i915_power( drm_device_t *dev, unsigned int state ) -{ - drm_i915_private_t *dev_priv = - (drm_i915_private_t *)dev->dev_private; - - DRM_DEBUG("%s state=%d\n", __FUNCTION__, state); - - if (!dev_priv) return 0; - - /* Save state for power up later */ - if (state != 0) { - I915_WRITE( SRX_INDEX, SR01 ); - dev_priv->sr01 = I915_READ( SRX_DATA ); - dev_priv->dvoc = I915_READ( DVOC ); - dev_priv->dvob = I915_READ( DVOB ); - dev_priv->lvds = I915_READ( LVDS ); - dev_priv->adpa = I915_READ( ADPA ); - dev_priv->ppcr = I915_READ( PPCR ); - } - - /* D0: set DPMS mode on */ - i915_set_dpms(dev, state); - - return 0; -} |