diff options
| author | Marek Vasut <[email protected]> | 2019-05-07 22:31:23 +0200 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2019-05-10 22:43:18 +0200 |
| commit | 10e91cfdb0a0f8fe6a41511b2feb90c47b0e9f96 (patch) | |
| tree | 9a210bd6c55a3275dc68d23bb1a6ac636991a08e /drivers/serial/serial_sh.c | |
| parent | 2a219297c50d3686eb6b0dab10b344e0298b3959 (diff) | |
serial: sh: Drop assorted SH3, SH4, SH5 macros
Drop unused macros from the header to clean it up.
Signed-off-by: Marek Vasut <[email protected]>
Cc: Chris Brandt <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Vladimir Zapolskiy <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Diffstat (limited to 'drivers/serial/serial_sh.c')
| -rw-r--r-- | drivers/serial/serial_sh.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/serial/serial_sh.c b/drivers/serial/serial_sh.c index 8f52f9dce48..acfcc2954a9 100644 --- a/drivers/serial/serial_sh.c +++ b/drivers/serial/serial_sh.c @@ -19,9 +19,7 @@ DECLARE_GLOBAL_DATA_PTR; -#if defined(CONFIG_CPU_SH7760) || \ - defined(CONFIG_CPU_SH7780) || \ - defined(CONFIG_CPU_SH7786) +#if defined(CONFIG_CPU_SH7780) static int scif_rxfill(struct uart_port *port) { return sci_in(port, SCRFDR) & 0xff; @@ -38,14 +36,6 @@ static int scif_rxfill(struct uart_port *port) return sci_in(port, SCFDR) & SCIF2_RFDC_MASK; } } -#elif defined(CONFIG_ARCH_SH7372) -static int scif_rxfill(struct uart_port *port) -{ - if (port->type == PORT_SCIFA) - return sci_in(port, SCFDR) & SCIF_RFDC_MASK; - else - return sci_in(port, SCRFDR); -} #else static int scif_rxfill(struct uart_port *port) { |
