Skip to content

Commit 313cb90

Browse files
Lorenzo Pieralisibjorn-helgaas
authored andcommitted
ARM/PCI: Remove arch-specific pcibios_enable_device()
On systems with PCI_PROBE_ONLY set, we rely on BAR assignments from firmware. Previously we did not insert those resources into the resource tree, so we had to skip pci_enable_resources() because it fails if resources are not in the resource tree. Now that we *do* insert resources even when PCI_PROBE_ONLY is set, we no longer need the ARM-specific pcibios_enable_device(). Remove it so we use the generic version. [bhelgaas: changelog] Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Will Deacon <will.deacon@arm.com> CC: Arnd Bergmann <arnd@arndb.de> CC: Russell King <linux@arm.linux.org.uk>
1 parent f615bca commit 313cb90

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

‎arch/arm/kernel/bios32.c‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -588,18 +588,6 @@ resource_size_t pcibios_align_resource(void *data, const struct resource *res,
588588
return start;
589589
}
590590

591-
/**
592-
* pcibios_enable_device - Enable I/O and memory.
593-
* @dev: PCI device to be enabled
594-
*/
595-
int pcibios_enable_device(struct pci_dev *dev, int mask)
596-
{
597-
if (pci_has_flag(PCI_PROBE_ONLY))
598-
return 0;
599-
600-
return pci_enable_resources(dev, mask);
601-
}
602-
603591
int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
604592
enum pci_mmap_state mmap_state, int write_combine)
605593
{

0 commit comments

Comments
 (0)