Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe59d537 authored by Russell King's avatar Russell King Committed by Russell King
Browse files

[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
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -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;
}