aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500/framebuffer.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>2012-03-08 11:03:32 -0500
committerDave Airlie <airlied@redhat.com>2012-03-10 08:05:57 -0500
commit4796001a7d5dfdae082919f93ef6104be0108012 (patch)
tree0efb75a743c85120b9ab569ddd4f270c5da64e32 /drivers/gpu/drm/gma500/framebuffer.c
parenta58df0ade953f19cbadb520ea3628436c3f3ee7a (diff)
gma500: drop unused psbfb_suspend()/psbfb_resume()
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/gma500/framebuffer.c')
-rw-r--r--drivers/gpu/drm/gma500/framebuffer.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/drivers/gpu/drm/gma500/framebuffer.c b/drivers/gpu/drm/gma500/framebuffer.c
index b4710dc8d27f..bfeb96d5cce8 100644
--- a/drivers/gpu/drm/gma500/framebuffer.c
+++ b/drivers/gpu/drm/gma500/framebuffer.c
@@ -111,39 +111,6 @@ static int psbfb_pan(struct fb_var_screeninfo *var, struct fb_info *info)
111 return 0; 111 return 0;
112} 112}
113 113
114void psbfb_suspend(struct drm_device *dev)
115{
116 struct drm_framebuffer *fb;
117
118 console_lock();
119 mutex_lock(&dev->mode_config.mutex);
120 list_for_each_entry(fb, &dev->mode_config.fb_list, head) {
121 struct psb_framebuffer *psbfb = to_psb_fb(fb);
122 struct fb_info *info = psbfb->fbdev;
123 fb_set_suspend(info, 1);
124 drm_fb_helper_blank(FB_BLANK_POWERDOWN, info);
125 }
126 mutex_unlock(&dev->mode_config.mutex);
127 console_unlock();
128}
129
130void psbfb_resume(struct drm_device *dev)
131{
132 struct drm_framebuffer *fb;
133
134 console_lock();
135 mutex_lock(&dev->mode_config.mutex);
136 list_for_each_entry(fb, &dev->mode_config.fb_list, head) {
137 struct psb_framebuffer *psbfb = to_psb_fb(fb);
138 struct fb_info *info = psbfb->fbdev;
139 fb_set_suspend(info, 0);
140 drm_fb_helper_blank(FB_BLANK_UNBLANK, info);
141 }
142 mutex_unlock(&dev->mode_config.mutex);
143 console_unlock();
144 drm_helper_disable_unused_functions(dev);
145}
146
147static int psbfb_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf) 114static int psbfb_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
148{ 115{
149 struct psb_framebuffer *psbfb = vma->vm_private_data; 116 struct psb_framebuffer *psbfb = vma->vm_private_data;