]> git.baikalelectronics.ru Git - kernel.git/commit
PCI PM: Make pci_prepare_to_sleep() disable wake-up if needed
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 30 Mar 2009 19:46:27 +0000 (21:46 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 30 Mar 2009 19:46:56 +0000 (21:46 +0200)
commite97b0ab491e194078f895fea81c7671b54f6bf55
treee1633be5df4fa15755bfcfaf5007d8b972bcdff7
parent0d508962eeef21a6278826475a711c13e47873d7
PCI PM: Make pci_prepare_to_sleep() disable wake-up if needed

If the device is not supposed to wake up the system, ie. when
device_may_wakeup(&dev->dev) returns 'false', pci_prepare_to_sleep()
should pass 'false' to pci_enable_wake() so that it calls the
platform to disable the wake-up capability of the device.

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