]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
e100: Use pci_pme_active to clear PME_Status and disable PME#
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 7 Aug 2008 22:18:04 +0000 (00:18 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 19 Sep 2008 01:42:50 +0000 (21:42 -0400)
commite7272403d2f9be3dbb7cc185fcc390e781b1af6b
tree93a3b247e840c39d83fbdc5073f7189b01136b56
parent78566fecbb12a7616ae9a88b2ffbc8062c4a89e3
e100: Use pci_pme_active to clear PME_Status and disable PME#

Currently e100 uses pci_enable_wake() to clear pending wake-up events
and disable PME# during intitialization, but that function is not
suitable for this purpose, because it immediately returns error code
if device_may_wakeup() returns false for given device.

Make e100 use pci_pme_active(), which carries out exactly the
required operations, instead.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/e100.c