Skip to content

Commit

Permalink
sparc: Fixes the DRM layer build on sparc.
Browse files Browse the repository at this point in the history
By providing an ioremap_wc().

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jul 22, 2008
1 parent 6662327 commit 428695b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/asm-sparc/io_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ _memcpy_toio(volatile void __iomem *dst, const void *src, __kernel_size_t n)
*/
extern void __iomem *ioremap(unsigned long offset, unsigned long size);
#define ioremap_nocache(X,Y) ioremap((X),(Y))
#define ioremap_wc(X,Y) ioremap((X),(Y))
extern void iounmap(volatile void __iomem *addr);

#define ioread8(X) readb(X)
Expand Down
1 change: 1 addition & 0 deletions include/asm-sparc/io_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ static inline void __iomem *ioremap(unsigned long offset, unsigned long size)
}

#define ioremap_nocache(X,Y) ioremap((X),(Y))
#define ioremap_wc(X,Y) ioremap((X),(Y))

static inline void iounmap(volatile void __iomem *addr)
{
Expand Down

0 comments on commit 428695b

Please sign in to comment.