提交 fe59d537 编写于 作者: R Russell King 提交者: Russell King

[SERIAL] Fix resume handling bug

Unfortunately, pcmcia_dev_present() returns false when a device is
suspended, so checking this on resume does not work too well.  Omit
this test.
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 bcf5111a
......@@ -307,16 +307,14 @@ static int serial_suspend(struct pcmcia_device *link)
static int serial_resume(struct pcmcia_device *link)
{
if (pcmcia_dev_present(link)) {
struct serial_info *info = link->priv;
int i;
struct serial_info *info = link->priv;
int i;
for (i = 0; i < info->ndev; i++)
serial8250_resume_port(info->line[i]);
for (i = 0; i < info->ndev; i++)
serial8250_resume_port(info->line[i]);
if (info->quirk && info->quirk->wakeup)
info->quirk->wakeup(link);
}
if (info->quirk && info->quirk->wakeup)
info->quirk->wakeup(link);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册