aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2007-12-10 22:48:23 -0500
committerPaul Mackerras <paulus@samba.org>2007-12-10 23:43:35 -0500
commitf276b5ba0d87eba4ce7aace9608d811776734cb5 (patch)
treec7ef1086c6854b1acaca8909ab06416259c47acf /arch/powerpc
parent6d39635959fe2f072130789a95e11ff97fb27b58 (diff)
[POWERPC] Remove useless volatiles in udbg_16550.c
This removes "volatile" from the MMIO pointer udbg_comport in udbg_16550.c driver, it's useless and makes checkpatch.pl complain when adding things to this file. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kernel/udbg_16550.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/udbg_16550.c b/arch/powerpc/kernel/udbg_16550.c
index 833a3d0bcfa7..df740eae77b8 100644
--- a/arch/powerpc/kernel/udbg_16550.c
+++ b/arch/powerpc/kernel/udbg_16550.c
@@ -46,7 +46,7 @@ struct NS16550 {
46 46
47#define LCR_DLAB 0x80 47#define LCR_DLAB 0x80
48 48
49static volatile struct NS16550 __iomem *udbg_comport; 49static struct NS16550 __iomem *udbg_comport;
50 50
51static void udbg_550_putc(char c) 51static void udbg_550_putc(char c)
52{ 52{
@@ -117,7 +117,7 @@ unsigned int udbg_probe_uart_speed(void __iomem *comport, unsigned int clock)
117{ 117{
118 unsigned int dll, dlm, divisor, prescaler, speed; 118 unsigned int dll, dlm, divisor, prescaler, speed;
119 u8 old_lcr; 119 u8 old_lcr;
120 volatile struct NS16550 __iomem *port = comport; 120 struct NS16550 __iomem *port = comport;
121 121
122 old_lcr = in_8(&port->lcr); 122 old_lcr = in_8(&port->lcr);
123 123
@@ -162,7 +162,7 @@ void udbg_maple_real_putc(char c)
162 162
163void __init udbg_init_maple_realmode(void) 163void __init udbg_init_maple_realmode(void)
164{ 164{
165 udbg_comport = (volatile struct NS16550 __iomem *)0xf40003f8; 165 udbg_comport = (struct NS16550 __iomem *)0xf40003f8;
166 166
167 udbg_putc = udbg_maple_real_putc; 167 udbg_putc = udbg_maple_real_putc;
168 udbg_getc = NULL; 168 udbg_getc = NULL;
@@ -184,7 +184,7 @@ void udbg_pas_real_putc(char c)
184 184
185void udbg_init_pas_realmode(void) 185void udbg_init_pas_realmode(void)
186{ 186{
187 udbg_comport = (volatile struct NS16550 __iomem *)0xfcff03f8UL; 187 udbg_comport = (struct NS16550 __iomem *)0xfcff03f8UL;
188 188
189 udbg_putc = udbg_pas_real_putc; 189 udbg_putc = udbg_pas_real_putc;
190 udbg_getc = NULL; 190 udbg_getc = NULL;
@@ -219,7 +219,7 @@ static int udbg_44x_as1_getc(void)
219void __init udbg_init_44x_as1(void) 219void __init udbg_init_44x_as1(void)
220{ 220{
221 udbg_comport = 221 udbg_comport =
222 (volatile struct NS16550 __iomem *)PPC44x_EARLY_DEBUG_VIRTADDR; 222 (struct NS16550 __iomem *)PPC44x_EARLY_DEBUG_VIRTADDR;
223 223
224 udbg_putc = udbg_44x_as1_putc; 224 udbg_putc = udbg_44x_as1_putc;
225 udbg_getc = udbg_44x_as1_getc; 225 udbg_getc = udbg_44x_as1_getc;