PCI: Move PCI-specific devres code to drivers/pci/
authorPhilipp Stanner <pstanner@redhat.com>
Wed, 31 Jan 2024 09:00:22 +0000 (10:00 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 12 Feb 2024 16:36:17 +0000 (10:36 -0600)
commitacc2364fe661069637c60ed5bbd32ea2a2c5ef61
tree759e4b539cf7e01baeab848ff4878ae32aade064
parentae874027524c537a15e8d6f14ff69b855bc13ca8
PCI: Move PCI-specific devres code to drivers/pci/

The pcim_*() functions in lib/devres.c are guarded by an #ifdef CONFIG_PCI
and, thus, don't belong to this file. They are only ever used for PCI and
are not generic infrastructure.

Move all pcim_*() functions in lib/devres.c to drivers/pci/devres.c.
Adjust the Makefile.

Add drivers/pci/devres.c to Documentation.

Link: https://lore.kernel.org/r/20240131090023.12331-4-pstanner@redhat.com
Suggested-by: Danilo Krummrich <dakr@redhat.com>
Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Documentation/driver-api/pci/pci.rst
drivers/pci/Makefile
drivers/pci/devres.c [new file with mode: 0644]
lib/devres.c