diff options
author | Daniel Thompson <daniel.thompson@linaro.org> | 2014-09-23 03:31:30 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-28 21:49:48 -0400 |
commit | daea65a7be76953bb80d13d0ac43e7441fd42cdf (patch) | |
tree | fa1e362585a76b4ea6fc1a11aa4bbcb11b5afeea /drivers/tty | |
parent | 2dea53bf57783f243c892e99c10c6921e956aa7e (diff) |
serial: asc: Conditionally use readl_relaxed (COMPILE_TEST)
Commit 08177ece596c ("serial: asc: Adopt readl_/writel_relaxed()) is
regressing the m68k allmodconfig build. This is due to the unconditional
use of readl_relaxed() which, although documented, does not currently
exist for m68k.
This is trivially fixable for st-asc because we can just update the
asc_in() accessor to make this conditional.
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@gmail.com>
Cc: Maxime Coquelin <maxime.coquelin@st.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/st-asc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c index a3fc1678d2b9..a3165842ca29 100644 --- a/drivers/tty/serial/st-asc.c +++ b/drivers/tty/serial/st-asc.c | |||
@@ -151,7 +151,11 @@ static inline struct asc_port *to_asc_port(struct uart_port *port) | |||
151 | 151 | ||
152 | static inline u32 asc_in(struct uart_port *port, u32 offset) | 152 | static inline u32 asc_in(struct uart_port *port, u32 offset) |
153 | { | 153 | { |
154 | #ifdef readl_relaxed | ||
154 | return readl_relaxed(port->membase + offset); | 155 | return readl_relaxed(port->membase + offset); |
156 | #else | ||
157 | return readl(port->membase + offset); | ||
158 | #endif | ||
155 | } | 159 | } |
156 | 160 | ||
157 | static inline void asc_out(struct uart_port *port, u32 offset, u32 value) | 161 | static inline void asc_out(struct uart_port *port, u32 offset, u32 value) |