serial: asc: Conditionally use readl_relaxed (COMPILE_TEST)
[deliverable/linux.git] / drivers / tty / serial / st-asc.c
index a3fc1678d2b96c1738b859ca6cfe4984929fda6b..a3165842ca297c6f2bad2750a6eb644b9cf7cc5e 100644 (file)
@@ -151,7 +151,11 @@ static inline struct asc_port *to_asc_port(struct uart_port *port)
 
 static inline u32 asc_in(struct uart_port *port, u32 offset)
 {
+#ifdef readl_relaxed
        return readl_relaxed(port->membase + offset);
+#else
+       return readl(port->membase + offset);
+#endif
 }
 
 static inline void asc_out(struct uart_port *port, u32 offset, u32 value)
This page took 0.040482 seconds and 5 git commands to generate.