summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/vga.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/vga.h')
-rw-r--r--arch/powerpc/include/asm/vga.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/vga.h b/arch/powerpc/include/asm/vga.h
index e5f8dd366212..ab3acd2f2786 100644
--- a/arch/powerpc/include/asm/vga.h
+++ b/arch/powerpc/include/asm/vga.h
@@ -25,12 +25,12 @@
static inline void scr_writew(u16 val, volatile u16 *addr)
{
- st_le16(addr, val);
+ *addr = cpu_to_le16(val);
}
static inline u16 scr_readw(volatile const u16 *addr)
{
- return ld_le16(addr);
+ return le16_to_cpu(*addr);
}
#define VT_BUF_HAVE_MEMCPYW