Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Stefan Christ and committed by
Daniel Vetter
8d762017 305964b7

-9
-9
drivers/gpu/drm/gma500/framebuffer.c
··· 184 184 return 0; 185 185 } 186 186 187 - static int psbfb_ioctl(struct fb_info *info, unsigned int cmd, 188 - unsigned long arg) 189 - { 190 - return -ENOTTY; 191 - } 192 - 193 187 static struct fb_ops psbfb_ops = { 194 188 .owner = THIS_MODULE, 195 189 .fb_check_var = drm_fb_helper_check_var, ··· 195 201 .fb_imageblit = drm_fb_helper_cfb_imageblit, 196 202 .fb_mmap = psbfb_mmap, 197 203 .fb_sync = psbfb_sync, 198 - .fb_ioctl = psbfb_ioctl, 199 204 }; 200 205 201 206 static struct fb_ops psbfb_roll_ops = { ··· 208 215 .fb_imageblit = drm_fb_helper_cfb_imageblit, 209 216 .fb_pan_display = psbfb_pan, 210 217 .fb_mmap = psbfb_mmap, 211 - .fb_ioctl = psbfb_ioctl, 212 218 }; 213 219 214 220 static struct fb_ops psbfb_unaccel_ops = { ··· 220 228 .fb_copyarea = drm_fb_helper_cfb_copyarea, 221 229 .fb_imageblit = drm_fb_helper_cfb_imageblit, 222 230 .fb_mmap = psbfb_mmap, 223 - .fb_ioctl = psbfb_ioctl, 224 231 }; 225 232 226 233 /**