serial: fix enable_irq_wake/disable_irq_wake imbalance in serial_core.c
authorArjan van de Ven <arjan@linux.intel.com>
Fri, 23 May 2008 20:04:49 +0000 (13:04 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 16 Jun 2008 20:20:05 +0000 (13:20 -0700)
commit3f8c9c7e37568163e4a9d923286b8ca30a42bed6
tree70db77ba6bf277a8d3209399985fb39534ca419c
parent0349d90da8f3cccf7800501dfd70819323fa8302
serial: fix enable_irq_wake/disable_irq_wake imbalance in serial_core.c

commit 03a74dcc7eebe6edd778317e82fafdf71e68488c in mainline.

enable_irq_wake() and disable_irq_wake() need to be balanced.  However,
serial_core.c calls these for different conditions during the suspend and
resume functions...

This is causing a regular WARN_ON() as found at
http://www.kerneloops.org/search.php?search=set_irq_wake

This patch makes the conditions for triggering the _wake enable/disable
sequence identical.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/serial_core.c