aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Christ <s.christ@phytec.de>2016-07-27 08:24:30 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-07-28 04:04:03 -0400
commit8d762017f482386cd73e77bb250e0a9dd1fe5a25 (patch)
tree7600bb72100e9aea43e82d7889eca9a9d6339cf8
parent305964b7a0437e3feea7a29971da18dd92408129 (diff)
drm/gma500: remove unnecessary stub for fb_ioctl()
Stub implementation of fb_ioctl can be omitted, because function do_fb_ioctl already returns -ENOTTY when fb_ioctl is not assigned. Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1469622270-10803-1-git-send-email-s.christ@phytec.de
-rw-r--r--drivers/gpu/drm/gma500/framebuffer.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/gpu/drm/gma500/framebuffer.c b/drivers/gpu/drm/gma500/framebuffer.c
index 7440bf90ac9c..0fcdce0817de 100644
--- a/drivers/gpu/drm/gma500/framebuffer.c
+++ b/drivers/gpu/drm/gma500/framebuffer.c
@@ -184,12 +184,6 @@ static int psbfb_mmap(struct fb_info *info, struct vm_area_struct *vma)
184 return 0; 184 return 0;
185} 185}
186 186
187static int psbfb_ioctl(struct fb_info *info, unsigned int cmd,
188 unsigned long arg)
189{
190 return -ENOTTY;
191}
192
193static struct fb_ops psbfb_ops = { 187static struct fb_ops psbfb_ops = {
194 .owner = THIS_MODULE, 188 .owner = THIS_MODULE,
195 .fb_check_var = drm_fb_helper_check_var, 189 .fb_check_var = drm_fb_helper_check_var,
@@ -201,7 +195,6 @@ static struct fb_ops psbfb_ops = {
201 .fb_imageblit = drm_fb_helper_cfb_imageblit, 195 .fb_imageblit = drm_fb_helper_cfb_imageblit,
202 .fb_mmap = psbfb_mmap, 196 .fb_mmap = psbfb_mmap,
203 .fb_sync = psbfb_sync, 197 .fb_sync = psbfb_sync,
204 .fb_ioctl = psbfb_ioctl,
205}; 198};
206 199
207static struct fb_ops psbfb_roll_ops = { 200static struct fb_ops psbfb_roll_ops = {
@@ -215,7 +208,6 @@ static struct fb_ops psbfb_roll_ops = {
215 .fb_imageblit = drm_fb_helper_cfb_imageblit, 208 .fb_imageblit = drm_fb_helper_cfb_imageblit,
216 .fb_pan_display = psbfb_pan, 209 .fb_pan_display = psbfb_pan,
217 .fb_mmap = psbfb_mmap, 210 .fb_mmap = psbfb_mmap,
218 .fb_ioctl = psbfb_ioctl,
219}; 211};
220 212
221static struct fb_ops psbfb_unaccel_ops = { 213static struct fb_ops psbfb_unaccel_ops = {
@@ -228,7 +220,6 @@ static struct fb_ops psbfb_unaccel_ops = {
228 .fb_copyarea = drm_fb_helper_cfb_copyarea, 220 .fb_copyarea = drm_fb_helper_cfb_copyarea,
229 .fb_imageblit = drm_fb_helper_cfb_imageblit, 221 .fb_imageblit = drm_fb_helper_cfb_imageblit,
230 .fb_mmap = psbfb_mmap, 222 .fb_mmap = psbfb_mmap,
231 .fb_ioctl = psbfb_ioctl,
232}; 223};
233 224
234/** 225/**