PCI: fix incorrect error return in pci_enable_wake
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 16 Dec 2008 19:06:58 +0000 (14:06 -0500)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:12:56 +0000 (11:12 -0800)
commitbebd590ca27e80ffe3129ab4f0a3124f0a340f43
tree6b303ff88ede1dbd4e4ce0520e0fedd350127d7e
parentf0e88af855cbc5012f2e796f42686969b82d79d4
PCI: fix incorrect error return in pci_enable_wake

This patch (as1186) fixes a minor mistake in pci_enable_wake().  When
the routine is asked to disable remote wakeup, it should not return an
error merely because the device is not allowed to do wakeups!

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci.c