summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/vt8500lcdfb.c
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2023-07-15 21:51:45 +0300
committerThomas Zimmermann <tzimmermann@suse.de>2023-07-24 17:50:38 +0300
commita0331a4bde9dea3dffe37b6348e6509708e42e33 (patch)
treedbd224bad8e96de05a35eb61781d68355828e4c4 /drivers/video/fbdev/vt8500lcdfb.c
parent6304da8a91da8f09c3a649b70b49ed2090d41ade (diff)
downloadlinux-a0331a4bde9dea3dffe37b6348e6509708e42e33.tar.xz
fbdev: Remove FBINFO_DEFAULT from kzalloc()'ed structs
The flag FBINFO_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by kzalloc(). So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v4: * clarify commit message (Geert, Dan) v2: * fix commit message (Miguel) Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Sam Ravnborg <sam@ravnborg.org> Cc: Helge Deller <deller@gmx.de> Cc: Russell King <linux@armlinux.org.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20230715185343.7193-4-tzimmermann@suse.de
Diffstat (limited to 'drivers/video/fbdev/vt8500lcdfb.c')
-rw-r--r--drivers/video/fbdev/vt8500lcdfb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/fbdev/vt8500lcdfb.c b/drivers/video/fbdev/vt8500lcdfb.c
index 31d4e85b220c..42d39a9d5130 100644
--- a/drivers/video/fbdev/vt8500lcdfb.c
+++ b/drivers/video/fbdev/vt8500lcdfb.c
@@ -300,8 +300,7 @@ static int vt8500lcd_probe(struct platform_device *pdev)
fbi->fb.var.vmode = FB_VMODE_NONINTERLACED;
fbi->fb.fbops = &vt8500lcd_ops;
- fbi->fb.flags = FBINFO_DEFAULT
- | FBINFO_HWACCEL_COPYAREA
+ fbi->fb.flags = FBINFO_HWACCEL_COPYAREA
| FBINFO_HWACCEL_FILLRECT
| FBINFO_HWACCEL_YPAN
| FBINFO_VIRTFB