|
@@ -1941,6 +1941,8 @@ int uart_suspend_port(struct uart_driver *drv, struct uart_port *uport)
|
|
mutex_unlock(&port->mutex);
|
|
mutex_unlock(&port->mutex);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
+ put_device(tty_dev);
|
|
|
|
+
|
|
if (console_suspend_enabled || !uart_console(uport))
|
|
if (console_suspend_enabled || !uart_console(uport))
|
|
uport->suspended = 1;
|
|
uport->suspended = 1;
|
|
|
|
|
|
@@ -2006,9 +2008,11 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport)
|
|
disable_irq_wake(uport->irq);
|
|
disable_irq_wake(uport->irq);
|
|
uport->irq_wake = 0;
|
|
uport->irq_wake = 0;
|
|
}
|
|
}
|
|
|
|
+ put_device(tty_dev);
|
|
mutex_unlock(&port->mutex);
|
|
mutex_unlock(&port->mutex);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
+ put_device(tty_dev);
|
|
uport->suspended = 0;
|
|
uport->suspended = 0;
|
|
|
|
|
|
/*
|
|
/*
|