diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2019-10-14 16:17:05 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-11-26 13:10:28 -0600 |
commit | 901c4ddbe277a766fd081ffbbd526d7b4bdbacdf (patch) | |
tree | 46c929c5f4fa41141df4743837a5b12715327f9e /drivers/pci/controller/dwc/pci-keystone.c | |
parent | d41b0e64d206f8948212b4d0f30c330db95c9636 (diff) | |
download | linux-901c4ddbe277a766fd081ffbbd526d7b4bdbacdf.tar.bz2 |
PCI/MSI: Move power state check out of pci_msi_supported()
27e20603c54b ("PCI/MSI: Move D0 check into pci_msi_check_device()")
moved the power state check into pci_msi_check_device(), which was
subsequently renamed to pci_msi_supported(). This didn't change the
behavior, since both callers checked the power state.
However, it doesn't fit the current "pci_msi_supported()" name, which
should return what the device is capable of, independent of the power
state.
Move the power state check back into the callers for readability. No
functional change intended.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-keystone.c')
0 files changed, 0 insertions, 0 deletions