]> www.infradead.org Git - users/dwmw2/linux.git/commit
PCI: Remove legacy pcim_release()
authorPhilipp Stanner <pstanner@redhat.com>
Thu, 13 Jun 2024 11:50:24 +0000 (13:50 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 11 Jul 2024 21:20:15 +0000 (16:20 -0500)
commitf748a07a0b6430b3ed638e5df7ae5007a28eaf11
tree847ab8b51352f1f45bd52c71198fcb32c5953b73
parent25216afc9db53d85dc648aba8fb7f6d31f2c8731
PCI: Remove legacy pcim_release()

Thanks to preceding cleanup steps, pcim_release() is now not needed
anymore and can be replaced by pcim_disable_device(), which is the exact
counterpart to pcim_enable_device().

This permits removing further parts of the old PCI devres implementation.

Replace pcim_release() with pcim_disable_device().  Remove the now unused
function get_pci_dr().  Remove the struct pci_devres from pci.h.

Link: https://lore.kernel.org/r/20240613115032.29098-12-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