]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Give pcim_set_mwi() its own devres cleanup callback
authorPhilipp Stanner <pstanner@redhat.com>
Thu, 13 Jun 2024 11:50:22 +0000 (13:50 +0200)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Wed, 10 Jul 2024 04:20:17 +0000 (04:20 +0000)
commit2c3e842f125fc1c57cd2824840d04e401c0542c2
tree0f3bf091e8a8b6480bc3a02a5900f724861355a4
parent1b9469cf15976a7cb7378caaa8a1772e7901514d
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>
drivers/pci/devres.c
drivers/pci/pci.h