fbdev: Include <linux/io.h> in various drivers
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 12 May 2023 10:24:41 +0000 (12:24 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 18 May 2023 09:06:19 +0000 (11:06 +0200)
The code uses writel() and similar I/O-memory helpers. Include
the header file to get the declarations.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Sui Jingfeng <suijingfeng@loongson.cn>
Link: https://patchwork.freedesktop.org/patch/msgid/20230512102444.5438-5-tzimmermann@suse.de
drivers/video/fbdev/arcfb.c
drivers/video/fbdev/aty/atyfb.h
drivers/video/fbdev/wmt_ge_rops.c

index 7750e020839ecd91fb736db5495c9ffd92d30eb1..ace104850e50b20f07aae33710f09f647a5cdc09 100644 (file)
@@ -41,6 +41,7 @@
 #include <linux/vmalloc.h>
 #include <linux/delay.h>
 #include <linux/interrupt.h>
+#include <linux/io.h>
 #include <linux/fb.h>
 #include <linux/init.h>
 #include <linux/arcfb.h>
index 465f55beb97f94182594e74dd33237c6f458ebc7..30da3e82ed3c29c50da53c3b80f6f99b33398828 100644 (file)
@@ -3,8 +3,10 @@
  *  ATI Frame Buffer Device Driver Core Definitions
  */
 
+#include <linux/io.h>
 #include <linux/spinlock.h>
 #include <linux/wait.h>
+
     /*
      *  Elements of the hardware specific atyfb_par structure
      */
index 3ed143457d228c4f3efb6fb80d30735995af6899..b70961901683f686f0d2760b37e657396e1a8fe5 100644 (file)
@@ -9,7 +9,9 @@
 
 #include <linux/module.h>
 #include <linux/fb.h>
+#include <linux/io.h>
 #include <linux/platform_device.h>
+
 #include "core/fb_draw.h"
 #include "wmt_ge_rops.h"