Message ID | 49EF00A1.9080004@gandalf.sssup.it (mailing list archive) |
---|---|
State | RFC |
Headers | show |
diff --git a/drivers/serial/sh-sci.c b/drivers/serial/sh-sci.c index dbf5357..50563af 100644 --- a/drivers/serial/sh-sci.c +++ b/drivers/serial/sh-sci.c @@ -283,13 +283,9 @@ static inline void sci_init_pins(struct uart_port *port, unsigned int cflag) } #endif -#if defined(CONFIG_CPU_SUBTYPE_SH7760) || \ - defined(CONFIG_CPU_SUBTYPE_SH7780) || \ - defined(CONFIG_CPU_SUBTYPE_SH7785) || \ - defined(CONFIG_CPU_SUBTYPE_SH7786) static inline int scif_txroom(struct uart_port *port) { - return SCIF_TXROOM_MAX - (sci_in(port, SCTFDR) & 0xff); + return port->fifosize - (sci_in(port, SCTFDR) & 0xff); }