LinuxKPI: fix build after d4a4960c65 pci: "pcim" (managed) support

Fix a last minute change from d4a4960c65
based on review feedback in where a function now gets called before
it is declared which did not fully get merged back to my commit branch.

Noticed by:	CI, jkim
MFC after:	10 days
X-MFC with:	d4a4960c65
Sponsored-by:	The FreeBSD Foundation
This commit is contained in:
Bjoern A. Zeeb 2021-06-18 22:49:12 +00:00
parent 41dfd8bd64
commit 5f88df77a6

View File

@ -217,6 +217,14 @@ linux_pci_find(device_t dev, const struct pci_device_id **idp)
return (NULL);
}
static void
lkpi_pci_dev_release(struct device *dev)
{
lkpi_devres_release_free_list(dev);
spin_lock_destroy(&dev->devres_lock);
}
static void
lkpifill_pci_dev(device_t dev, struct pci_dev *pdev)
{
@ -301,14 +309,6 @@ lkpi_pci_get_domain_bus_and_slot(int domain, unsigned int bus,
return (pdev);
}
static void
lkpi_pci_dev_release(struct device *dev)
{
lkpi_devres_release_free_list(dev);
spin_lock_destroy(&dev->devres_lock);
}
static int
linux_pci_probe(device_t dev)
{