diff options
author | Philipp Stanner <pstanner@redhat.com> | 2024-06-13 13:50:22 +0200 |
---|---|---|
committer | Krzysztof Wilczyński <kwilczynski@kernel.org> | 2024-07-10 06:20:17 +0200 |
commit | 2c3e842f125fc1c57cd2824840d04e401c0542c2 (patch) | |
tree | 0f3bf091e8a8b6480bc3a02a5900f724861355a4 /drivers/pci/pci.h | |
parent | PCI: Move struct pci_devres.pinned bit to struct pci_dev (diff) | |
download | linux-2c3e842f125fc1c57cd2824840d04e401c0542c2.tar.xz linux-2c3e842f125fc1c57cd2824840d04e401c0542c2.zip |
PCI: Give pcim_set_mwi() its own devres cleanup callback
Managing pci_set_mwi() with devres can easily be done with its own
callback, without the necessity to store any state about it in a
device-related struct.
Remove the MWI state from struct pci_devres. Give pcim_set_mwi() a
separate devres cleanup callback.
Link: https://lore.kernel.org/r/20240613115032.29098-10-pstanner@redhat.com
Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index eb1eb4c7c34a..9a12f6774431 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -823,7 +823,6 @@ static inline pci_power_t mid_pci_get_power_state(struct pci_dev *pdev) struct pci_devres { unsigned int orig_intx:1; unsigned int restore_intx:1; - unsigned int mwi:1; }; struct pci_devres *find_pci_dr(struct pci_dev *pdev); |