aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drm_bufs.c
diff options
context:
space:
mode:
authorJesse Barnes <jesse.barnes@intel.com>2007-11-21 23:14:14 -0500
committerDave Airlie <airlied@redhat.com>2008-02-07 00:09:38 -0500
commitba8bbcf6ff4650712f64c0ef61139c73898e2165 (patch)
treebd82043d355bdb060ec8291992bca912880f780a /drivers/char/drm/drm_bufs.c
parente8b962b6df50b74afed14af7f7a7d569b3ba70ac (diff)
i915: add suspend/resume support
Add suspend/resume support to the i915 driver. Moves some of the initialization into the driver load routine, and fixes up places where we assumed no dev_private existed in some of the cleanup paths. This allows us to suspend/resume properly even if X isn't running. Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_bufs.c')
-rw-r--r--drivers/char/drm/drm_bufs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/drm/drm_bufs.c b/drivers/char/drm/drm_bufs.c
index d65e75d405fa..07b774fa3f38 100644
--- a/drivers/char/drm/drm_bufs.c
+++ b/drivers/char/drm/drm_bufs.c
@@ -429,6 +429,7 @@ int drm_rmmap(struct drm_device *dev, drm_local_map_t *map)
429 429
430 return ret; 430 return ret;
431} 431}
432EXPORT_SYMBOL(drm_rmmap);
432 433
433/* The rmmap ioctl appears to be unnecessary. All mappings are torn down on 434/* The rmmap ioctl appears to be unnecessary. All mappings are torn down on
434 * the last close of the device, and this is necessary for cleanup when things 435 * the last close of the device, and this is necessary for cleanup when things