Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1665159

[PATCH] tty/serial: remove AVR32 specific access wrappers

From Alexandre Belloni <alexandre.belloni@free-electrons.com>
Newsgroups linux.kernel
Subject [PATCH] tty/serial: remove AVR32 specific access wrappers
Date 2017-06-13 22:30 +0200
Message-ID <tS0BQ-46W-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Now that AVR32 is gone, the specific wrappers for that architecture are
unnecessary and will not be compiled anymore.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 drivers/tty/serial/atmel_serial.c | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
index 937d67f22fba..8bfc566df2da 100644
--- a/drivers/tty/serial/atmel_serial.c
+++ b/drivers/tty/serial/atmel_serial.c
@@ -228,21 +228,6 @@ static inline void atmel_uart_writel(struct uart_port *port, u32 reg, u32 value)
 	__raw_writel(value, port->membase + reg);
 }
 
-#ifdef CONFIG_AVR32
-
-/* AVR32 cannot handle 8 or 16bit I/O accesses but only 32bit I/O accesses */
-static inline u8 atmel_uart_read_char(struct uart_port *port)
-{
-	return __raw_readl(port->membase + ATMEL_US_RHR);
-}
-
-static inline void atmel_uart_write_char(struct uart_port *port, u8 value)
-{
-	__raw_writel(value, port->membase + ATMEL_US_THR);
-}
-
-#else
-
 static inline u8 atmel_uart_read_char(struct uart_port *port)
 {
 	return __raw_readb(port->membase + ATMEL_US_RHR);
@@ -253,8 +238,6 @@ static inline void atmel_uart_write_char(struct uart_port *port, u8 value)
 	__raw_writeb(value, port->membase + ATMEL_US_THR);
 }
 
-#endif
-
 #ifdef CONFIG_SERIAL_ATMEL_PDC
 static bool atmel_use_pdc_rx(struct uart_port *port)
 {
-- 
2.11.0

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] tty/serial: remove AVR32 specific access wrappers Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-06-13 22:30 +0200
  Re: [PATCH] tty/serial: remove AVR32 specific access wrappers Richard Genoud <richard.genoud@gmail.com> - 2017-06-14 09:50 +0200
  Re: [PATCH] tty/serial: remove AVR32 specific access wrappers Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-06-14 11:50 +0200
    Re: [PATCH] tty/serial: remove AVR32 specific access wrappers Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-06-14 15:30 +0200
      Re: [PATCH] tty/serial: remove AVR32 specific access wrappers Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-06-14 16:20 +0200
        Re: [PATCH] tty/serial: remove AVR32 specific access wrappers Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-06-14 16:30 +0200
  Re: [PATCH] tty/serial: remove AVR32 specific access wrappers Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-14 12:50 +0200
    Re: [PATCH] tty/serial: remove AVR32 specific access wrappers Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-06-14 15:40 +0200

csiph-web