]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
PCI: pci_set_power_state(): check for PM capabilities earlier
authorAndrew Lunn <andrew.lunn@ascom.ch>
Mon, 9 Jul 2007 18:55:58 +0000 (11:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:02:12 +0000 (16:02 -0700)
commitcca03dec2f0eb8f3c4578e067d2b20a366b940db
tree501dcae4c17a2aa0d074a7d1b8b10160447e7a1a
parent0bec2c85bb269446358dceae82ca7822ccfd4e9f
PCI: pci_set_power_state(): check for PM capabilities earlier

Check for PCI_CAP_ID_PM before checking the device state.  Apparently fixes
some log spam via the 3c59x driver.

Signed-off-by: Andrew Lunn <andrew.lunn@ascom.ch>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pci.c