Commit fe59d537 authored by Russell King's avatar Russell King Committed by 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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent bcf5111a
...@@ -307,7 +307,6 @@ static int serial_suspend(struct pcmcia_device *link) ...@@ -307,7 +307,6 @@ static int serial_suspend(struct pcmcia_device *link)
static int serial_resume(struct pcmcia_device *link) static int serial_resume(struct pcmcia_device *link)
{ {
if (pcmcia_dev_present(link)) {
struct serial_info *info = link->priv; struct serial_info *info = link->priv;
int i; int i;
...@@ -316,7 +315,6 @@ static int serial_resume(struct pcmcia_device *link) ...@@ -316,7 +315,6 @@ static int serial_resume(struct pcmcia_device *link)
if (info->quirk && info->quirk->wakeup) if (info->quirk && info->quirk->wakeup)
info->quirk->wakeup(link); info->quirk->wakeup(link);
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment