From: Andy Shevchenko <andriy.shevche...@linux.intel.com> Backport: - Upstream-Status: Pending. [https://bitbucket.org/andy-shev/linux/commits/beaec3129e338fd4b4538b6a11afdec64e025185?at=master]
Since the driver has been switched to use runtime PM, remove legacy PM code. Signed-off-by: Andy Shevchenko <andriy.shevche...@linux.intel.com> --- drivers/tty/serial/8250/8250_port.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c index 880fb4c..f98559b 100644 --- a/drivers/tty/serial/8250/8250_port.c +++ b/drivers/tty/serial/8250/8250_port.c @@ -513,16 +513,12 @@ EXPORT_SYMBOL_GPL(serial8250_clear_and_reinit_fifos); void serial8250_rpm_get(struct uart_8250_port *p) { - if (!(p->capabilities & UART_CAP_RPM)) - return; pm_runtime_get_sync(p->port.dev); } EXPORT_SYMBOL_GPL(serial8250_rpm_get); void serial8250_rpm_put(struct uart_8250_port *p) { - if (!(p->capabilities & UART_CAP_RPM)) - return; pm_runtime_mark_last_busy(p->port.dev); pm_runtime_put_autosuspend(p->port.dev); } @@ -537,9 +533,6 @@ void serial8250_rpm_get_tx(struct uart_8250_port *p) { unsigned char rpm_active; - if (!(p->capabilities & UART_CAP_RPM)) - return; - rpm_active = xchg(&p->rpm_tx_active, 1); if (rpm_active) return; @@ -556,9 +549,6 @@ void serial8250_rpm_put_tx(struct uart_8250_port *p) { unsigned char rpm_active; - if (!(p->capabilities & UART_CAP_RPM)) - return; - rpm_active = xchg(&p->rpm_tx_active, 0); if (!rpm_active) return; @@ -1508,8 +1498,6 @@ void serial8250_tx_chars(struct uart_8250_port *up) * HW can go idle. So we get here once again with empty FIFO and disable * the interrupt and RPM in __stop_tx() */ - if (uart_circ_empty(xmit) && !(up->capabilities & UART_CAP_RPM)) - __stop_tx(up); } EXPORT_SYMBOL_GPL(serial8250_tx_chars); -- 1.9.1 -- _______________________________________________ linux-yocto mailing list linux-yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/linux-yocto