@@ -23,6 +23,7 @@
#include <linux/fb.h>
#include <linux/svga.h>
#include <linux/init.h>
+#include <linux/io.h>
#include <linux/pci.h>
#include <linux/console.h> /* Why should fb driver call console functions? because console_lock() */
#include <video/vga.h>
@@ -5,11 +5,10 @@
#include <linux/fb.h>
#include <linux/init.h>
+#include <linux/io.h>
#include <linux/string.h>
#include "../core/fb_draw.h"
-#include <asm/io.h>
-
#ifdef __sparc__
#include <asm/fbio.h>
#endif
@@ -26,6 +26,7 @@
#include <linux/fb.h>
#include <linux/pm.h>
#include <linux/init.h>
+#include <linux/io.h>
#include <linux/pci.h>
#include <linux/console.h>
@@ -43,6 +43,7 @@
#include <linux/delay.h>
#include <linux/fb.h>
#include <linux/init.h>
+#include <linux/io.h>
#ifdef CONFIG_ZORRO
#include <linux/zorro.h>
@@ -26,8 +26,8 @@
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/fb.h>
+#include <linux/io.h>
#include <asm/types.h>
-#include <asm/io.h>
#include "fb_draw.h"
#if BITS_PER_LONG == 32
@@ -13,6 +13,8 @@
* the native cpu endians. I also need to deal with MSB position in the word.
*
*/
+
+#include <linux/io.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/fb.h>
@@ -29,6 +29,8 @@
* Also need to add code to deal with cards endians that are different than
* the native cpu endians. I also need to deal with MSB position in the word.
*/
+
+#include <linux/io.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/fb.h>
@@ -23,6 +23,7 @@
#include <linux/mman.h>
#include <linux/vt.h>
#include <linux/init.h>
+#include <linux/io.h>
#include <linux/linux_logo.h>
#include <linux/proc_fs.h>
#include <linux/platform_device.h>
@@ -15,8 +15,8 @@
#include <linux/string.h>
#include <linux/fb.h>
#include <linux/svga.h>
+#include <linux/io.h>
#include <asm/types.h>
-#include <asm/io.h>
/* Write a CRT register value spread across multiple registers */
@@ -41,7 +41,7 @@
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/platform_device.h>
-#include <asm/io.h>
+#include <linux/io.h>
#include <asm/vga.h>
#if 0
@@ -23,7 +23,7 @@
#include <asm/machvec.h>
#include <linux/uaccess.h>
-#include <asm/io.h>
+#include <linux/io.h>
#include <asm/hd64461.h>
#include <cpu/dac.h>
@@ -21,7 +21,7 @@
#include <linux/ioctl.h>
#include <linux/init.h>
#include <linux/pci.h>
-#include <asm/io.h>
+#include <linux/io.h>
#include <linux/uaccess.h>
#include <video/kyro.h>
@@ -77,6 +77,8 @@
*
*/
+#include <linux/io.h>
+
#include "matroxfb_accel.h"
#include "matroxfb_DAC1064.h"
#include "matroxfb_Ti3026.h"
@@ -36,6 +36,7 @@
#include <linux/fb.h>
#include <linux/console.h>
#include <linux/selection.h>
+#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/timer.h>
@@ -43,7 +44,6 @@
#include <linux/spinlock.h>
#include <linux/kd.h>
-#include <asm/io.h>
#include <asm/unaligned.h>
#if defined(CONFIG_PPC_PMAC)
@@ -38,6 +38,7 @@
#include <linux/delay.h>
#include <linux/fb.h>
#include <linux/init.h>
+#include <linux/io.h>
#include <linux/pci.h>
#include <video/permedia2.h>
#include <video/cvisionppc.h>
@@ -32,6 +32,7 @@
#include <linux/delay.h>
#include <linux/fb.h>
#include <linux/init.h>
+#include <linux/io.h>
#include <linux/pci.h>
#include <video/pm3fb.h>
@@ -56,6 +56,7 @@
#include <linux/interrupt.h>
#include <linux/fb.h>
#include <linux/init.h>
+#include <linux/io.h>
#include <linux/pci.h>
#ifdef CONFIG_SH_DREAMCAST
@@ -22,6 +22,7 @@
#include <linux/fb.h>
#include <linux/svga.h>
#include <linux/init.h>
+#include <linux/io.h>
#include <linux/pci.h>
#include <linux/console.h> /* Why should fb driver call console functions? because console_lock() */
#include <video/vga.h>
@@ -88,7 +88,7 @@
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/init.h>
-#include <asm/io.h>
+#include <linux/io.h>
#include <linux/uaccess.h>
#include <video/sstfb.h>
@@ -74,7 +74,7 @@
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/pci.h>
-#include <asm/io.h>
+#include <linux/io.h>
#include <video/tdfx.h>
@@ -20,6 +20,7 @@
#include <linux/module.h>
#include <linux/fb.h>
#include <linux/init.h>
+#include <linux/io.h>
#include <linux/pci.h>
#include <linux/slab.h>
@@ -18,12 +18,12 @@
#include <linux/mm.h>
#include <linux/delay.h>
#include <linux/fb.h>
+#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/screen_info.h>
-#include <asm/io.h>
#include <video/vga.h>
#define MODE_SKIP4 1
@@ -23,6 +23,7 @@
#include <linux/fb.h>
#include <linux/svga.h>
#include <linux/init.h>
+#include <linux/io.h>
#include <linux/pci.h>
#include <linux/console.h> /* Why should fb driver call console functions? because console_lock() */
#include <video/vga.h>
Fbdev's main header file, <linux/fb.h>, includes <asm/io.h> to get declarations of I/O helper functions. From these declaratons, it later defines framebuffer I/O helpers, such as fb_{read,write}[bwlq]() or fb_memset(). The framebuffer I/O helpers pre-date Linux' current I/O code and will be replaced by regular I/O helpers. Prepare this change by adding an include statement for <linux/io.h> to all source files that use the framebuffer I/O helpers. They will still get declarations of the I/O functions even after <linux/fb.h> has been cleaned up. Driver source files that already include <asm/io.h> convert to <linux/io.h>. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> --- drivers/video/fbdev/arkfb.c | 1 + drivers/video/fbdev/aty/mach64_cursor.c | 3 +-- drivers/video/fbdev/chipsfb.c | 1 + drivers/video/fbdev/cirrusfb.c | 1 + drivers/video/fbdev/core/cfbcopyarea.c | 2 +- drivers/video/fbdev/core/cfbfillrect.c | 2 ++ drivers/video/fbdev/core/cfbimgblt.c | 2 ++ drivers/video/fbdev/core/fbmem.c | 1 + drivers/video/fbdev/core/svgalib.c | 2 +- drivers/video/fbdev/hgafb.c | 2 +- drivers/video/fbdev/hitfb.c | 2 +- drivers/video/fbdev/kyro/fbdev.c | 2 +- drivers/video/fbdev/matrox/matroxfb_accel.c | 2 ++ drivers/video/fbdev/matrox/matroxfb_base.h | 2 +- drivers/video/fbdev/pm2fb.c | 1 + drivers/video/fbdev/pm3fb.c | 1 + drivers/video/fbdev/pvr2fb.c | 1 + drivers/video/fbdev/s3fb.c | 1 + drivers/video/fbdev/sstfb.c | 2 +- drivers/video/fbdev/tdfxfb.c | 2 +- drivers/video/fbdev/tridentfb.c | 1 + drivers/video/fbdev/vga16fb.c | 2 +- drivers/video/fbdev/vt8623fb.c | 1 + 23 files changed, 26 insertions(+), 11 deletions(-)