Re: [PATCH] atmel_serial: update the powersave handler to match serialcore

From: Anti Sullin
Date: Fri Sep 19 2008 - 11:44:59 EST


One more bug of mine...

Haavard Skinnemoen wrote:
> }
> @@ -1491,11 +1498,9 @@ static int atmel_serial_resume(struct platform_device *pdev)
> struct uart_port *port = platform_get_drvdata(pdev);
> struct atmel_uart_port *atmel_port = to_atmel_uart_port(port);
>
> - if (atmel_port->suspended) {
> - uart_resume_port(&atmel_uart, port);
> - atmel_port->suspended = 0;
> - } else
> - disable_irq_wake(port->irq);
> + device_set_wakeup_enable(&pdev->dev, atmel_port->may_wakeup);
> +
> + uart_resume_port(&atmel_uart, port);
Just now noticed - these two lines should be switched.
>
> return 0;
> }



--
Anti Sullin
Embedded Software Engineer
Artec Design LLC
Akadeemia tee 23A, 12618, Tallinn, Estonia
http://www.artecdesign.ee
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/