[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: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
committed by
Russell King
parent
bcf5111a58
commit
fe59d5372a
@ -307,7 +307,6 @@ 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;
|
||||
|
||||
@ -316,7 +315,6 @@ static int serial_resume(struct pcmcia_device *link)
|
||||
|
||||
if (info->quirk && info->quirk->wakeup)
|
||||
info->quirk->wakeup(link);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user