/* Pin managed PCI device @pdev. Pinned device won't be disabled on driver detach. @pdev must have been enabled with pcim_enable_device().  */
void pcim_pin_device(struct pci_dev *pdev)
/* Pin managed PCI device @pdev. Pinned device won't be disabled on driver detach. @pdev must have been enabled with pcim_enable_device().  */
void pcim_pin_device(struct pci_dev *pdev)
{
	struct pci_devres *dr;
	dr = find_pci_dr(pdev);
	WARN_ON(!dr || !dr->enabled);
	if (dr)
		dr->pinned = 1;
}