]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] sh: Wrap fb_read/writeX() to __raw_read/writeX()
authorAndrew Morton <akpm@osdl.org>
Fri, 13 Feb 2004 07:45:19 +0000 (23:45 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Fri, 13 Feb 2004 07:45:19 +0000 (23:45 -0800)
From: Paul Mundt <lethal@linux-sh.org>

This adds sh to the list of platforms that wrap fb_readX/fb_writeX() to
__raw_readX/__raw_writeX().  This is needed so that the generic fb read/write
routines will wrap properly through the sh machvec and use the appropriate
board-specific I/O routines.

include/linux/fb.h

index 9a6fd61a00b87c3b7899d3eb4af4c56c1b843073..e429edf7224dbbf19ca587c1bc2c1165fc0b32eb 100644 (file)
@@ -476,7 +476,7 @@ struct fb_info {
 #define fb_writeq sbus_writeq
 #define fb_memset sbus_memset_io
 
-#elif defined(__i386__) || defined(__alpha__) || defined(__x86_64__) || defined(__hppa__)
+#elif defined(__i386__) || defined(__alpha__) || defined(__x86_64__) || defined(__hppa__) || defined(__sh__)
 
 #define fb_readb __raw_readb
 #define fb_readw __raw_readw