diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-04-26 10:46:24 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-04-27 11:20:24 -0400 |
commit | f197465384bf7ef1af184c2ed1a4e268911a91e3 (patch) | |
tree | d5637a3bff89aded9248bdf1cb24230d094d0228 /arch/mips/mips-boards | |
parent | 78709b9df35346965b214e0e548412748d147776 (diff) |
[MIPS] MIPS Tech: Get rid of volatile in core code.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mips-boards')
-rw-r--r-- | arch/mips/mips-boards/generic/display.c | 8 | ||||
-rw-r--r-- | arch/mips/mips-boards/generic/reset.c | 12 | ||||
-rw-r--r-- | arch/mips/mips-boards/malta/malta_int.c | 2 | ||||
-rw-r--r-- | arch/mips/mips-boards/malta/malta_setup.c | 4 |
4 files changed, 13 insertions, 13 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 | } |
diff --git a/arch/mips/mips-boards/generic/reset.c b/arch/mips/mips-boards/generic/reset.c index 0996ba368b2a..7a1bb51f81ee 100644 --- a/arch/mips/mips-boards/generic/reset.c +++ b/arch/mips/mips-boards/generic/reset.c | |||
@@ -39,24 +39,24 @@ static void atlas_machine_power_off(void); | |||
39 | 39 | ||
40 | static void mips_machine_restart(char *command) | 40 | static void mips_machine_restart(char *command) |
41 | { | 41 | { |
42 | volatile unsigned int *softres_reg = (unsigned int *)ioremap (SOFTRES_REG, sizeof(unsigned int)); | 42 | unsigned int __iomem *softres_reg = ioremap(SOFTRES_REG, sizeof(unsigned int)); |
43 | 43 | ||
44 | *softres_reg = GORESET; | 44 | writew(GORESET, softres_reg); |
45 | } | 45 | } |
46 | 46 | ||
47 | static void mips_machine_halt(void) | 47 | static void mips_machine_halt(void) |
48 | { | 48 | { |
49 | volatile unsigned int *softres_reg = (unsigned int *)ioremap (SOFTRES_REG, sizeof(unsigned int)); | 49 | unsigned int __iomem *softres_reg = ioremap(SOFTRES_REG, sizeof(unsigned int)); |
50 | 50 | ||
51 | *softres_reg = GORESET; | 51 | writew(GORESET, softres_reg); |
52 | } | 52 | } |
53 | 53 | ||
54 | #if defined(CONFIG_MIPS_ATLAS) | 54 | #if defined(CONFIG_MIPS_ATLAS) |
55 | static void atlas_machine_power_off(void) | 55 | static void atlas_machine_power_off(void) |
56 | { | 56 | { |
57 | volatile unsigned int *psustby_reg = (unsigned int *)ioremap(ATLAS_PSUSTBY_REG, sizeof(unsigned int)); | 57 | unsigned int __iomem *psustby_reg = ioremap(ATLAS_PSUSTBY_REG, sizeof(unsigned int)); |
58 | 58 | ||
59 | *psustby_reg = ATLAS_GOSTBY; | 59 | writew(ATLAS_GOSTBY, psustby_reg); |
60 | } | 60 | } |
61 | #endif | 61 | #endif |
62 | 62 | ||
diff --git a/arch/mips/mips-boards/malta/malta_int.c b/arch/mips/mips-boards/malta/malta_int.c index 3c206bb17160..38428566dce8 100644 --- a/arch/mips/mips-boards/malta/malta_int.c +++ b/arch/mips/mips-boards/malta/malta_int.c | |||
@@ -85,7 +85,7 @@ static inline int mips_pcibios_iack(void) | |||
85 | dummy = BONITO_PCIMAP_CFG; | 85 | dummy = BONITO_PCIMAP_CFG; |
86 | iob(); /* sync */ | 86 | iob(); /* sync */ |
87 | 87 | ||
88 | irq = *(volatile u32 *)(_pcictrl_bonito_pcicfg); | 88 | irq = readl((u32 *)_pcictrl_bonito_pcicfg); |
89 | iob(); /* sync */ | 89 | iob(); /* sync */ |
90 | irq &= 0xff; | 90 | irq &= 0xff; |
91 | BONITO_PCIMAP_CFG = 0; | 91 | BONITO_PCIMAP_CFG = 0; |
diff --git a/arch/mips/mips-boards/malta/malta_setup.c b/arch/mips/mips-boards/malta/malta_setup.c index 56ea76679cd4..7873932532a1 100644 --- a/arch/mips/mips-boards/malta/malta_setup.c +++ b/arch/mips/mips-boards/malta/malta_setup.c | |||
@@ -145,7 +145,8 @@ void __init plat_mem_setup(void) | |||
145 | #ifdef CONFIG_BLK_DEV_IDE | 145 | #ifdef CONFIG_BLK_DEV_IDE |
146 | /* Check PCI clock */ | 146 | /* Check PCI clock */ |
147 | { | 147 | { |
148 | int jmpr = (*((volatile unsigned int *)ioremap(MALTA_JMPRS_REG, sizeof(unsigned int))) >> 2) & 0x07; | 148 | unsigned int __iomem *jmpr_p = (unsigned int *) ioremap(MALTA_JMPRS_REG, sizeof(unsigned int)); |
149 | int jmpr = (readw(jmpr_p) >> 2) & 0x07; | ||
149 | static const int pciclocks[] __initdata = { | 150 | static const int pciclocks[] __initdata = { |
150 | 33, 20, 25, 30, 12, 16, 37, 10 | 151 | 33, 20, 25, 30, 12, 16, 37, 10 |
151 | }; | 152 | }; |
@@ -179,7 +180,6 @@ void __init plat_mem_setup(void) | |||
179 | }; | 180 | }; |
180 | #endif | 181 | #endif |
181 | #endif | 182 | #endif |
182 | |||
183 | mips_reboot_setup(); | 183 | mips_reboot_setup(); |
184 | 184 | ||
185 | board_time_init = mips_time_init; | 185 | board_time_init = mips_time_init; |