diff options
Diffstat (limited to 'arch/mips/mips-boards/generic/display.c')
-rw-r--r-- | arch/mips/mips-boards/generic/display.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/mips-boards/generic/display.c b/arch/mips/mips-boards/generic/display.c index f653946afc23..548dbe5ce7c8 100644 --- a/arch/mips/mips-boards/generic/display.c +++ b/arch/mips/mips-boards/generic/display.c | |||
@@ -24,16 +24,16 @@ | |||
24 | 24 | ||
25 | void mips_display_message(const char *str) | 25 | void mips_display_message(const char *str) |
26 | { | 26 | { |
27 | static volatile unsigned int *display = NULL; | 27 | static unsigned int __iomem *display = NULL; |
28 | int i; | 28 | int i; |
29 | 29 | ||
30 | if (unlikely(display == NULL)) | 30 | if (unlikely(display == NULL)) |
31 | display = (volatile unsigned int *)ioremap(ASCII_DISPLAY_POS_BASE, 16*sizeof(int)); | 31 | display = ioremap(ASCII_DISPLAY_POS_BASE, 16*sizeof(int)); |
32 | 32 | ||
33 | for (i = 0; i <= 14; i=i+2) { | 33 | for (i = 0; i <= 14; i=i+2) { |
34 | if (*str) | 34 | if (*str) |
35 | display[i] = *str++; | 35 | writel(*str++, display + i); |
36 | else | 36 | else |
37 | display[i] = ' '; | 37 | writel(' ', display + i); |
38 | } | 38 | } |
39 | } | 39 | } |