aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2022-08-04 11:41:52 -0500
committerBjorn Helgaas <bhelgaas@google.com>2022-08-04 11:41:52 -0500
commit3dc4d3333ac6ed9cd3632e8ebb6a8dedeef7ae23 (patch)
tree9abfe06630a1252778a3b3a714f8cc4f9d1de8fb
parent5a20930f27c4502ee595017787769ddb4465e795 (diff)
parent4f23bd5d09af41b04d30dcba85ea1303b3669b9f (diff)
downloadidmapping-3dc4d3333ac6ed9cd3632e8ebb6a8dedeef7ae23.tar.gz
Merge branch 'pci/pm'
- Convert documentation examples to generic power management (Bjorn Helgaas) * pci/pm: PCI/doc: Convert examples to generic power management
-rw-r--r--Documentation/PCI/pci-iov-howto.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/Documentation/PCI/pci-iov-howto.rst b/Documentation/PCI/pci-iov-howto.rst
index b9fd003206f1f2..27d35933cea2ea 100644
--- a/Documentation/PCI/pci-iov-howto.rst
+++ b/Documentation/PCI/pci-iov-howto.rst
@@ -125,14 +125,14 @@ Following piece of code illustrates the usage of the SR-IOV API.
...
}
- static int dev_suspend(struct pci_dev *dev, pm_message_t state)
+ static int dev_suspend(struct device *dev)
{
...
return 0;
}
- static int dev_resume(struct pci_dev *dev)
+ static int dev_resume(struct device *dev)
{
...
@@ -165,8 +165,7 @@ Following piece of code illustrates the usage of the SR-IOV API.
.id_table = dev_id_table,
.probe = dev_probe,
.remove = dev_remove,
- .suspend = dev_suspend,
- .resume = dev_resume,
+ .driver.pm = &dev_pm_ops,
.shutdown = dev_shutdown,
.sriov_configure = dev_sriov_configure,
};