* Disable the console device before suspending.
*/
if (uart_console(port))
- port->cons->flags &= ~CON_ENABLED;
+ console_stop(port->cons);
uart_change_pm(state, 3);
*/
if (uart_console(port)) {
uart_change_speed(state, NULL);
- port->cons->flags |= CON_ENABLED;
+ console_start(port->cons);
}
if (state->info && state->info->flags & UIF_INITIALIZED) {