mirror of https://gitee.com/openkylin/linux.git
PCI: Remove unused pcibios_select_root() (again)
a6c140969b
("Delete pcibios_select_root") removed pcibios_select_root(). Buta7db504052
("PCI: remove pcibios_scan_all_fns()") added a few copies back, probably with some incorrect merge conflict resolutions. Remove the still-unused pcibios_select_root() definitions. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
parent
633adc711d
commit
d59d36a7fc
|
@ -108,19 +108,6 @@ static inline int pci_proc_domain(struct pci_bus *bus)
|
||||||
return (pci_domain_nr(bus) != 0);
|
return (pci_domain_nr(bus) != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline struct resource *
|
|
||||||
pcibios_select_root(struct pci_dev *pdev, struct resource *res)
|
|
||||||
{
|
|
||||||
struct resource *root = NULL;
|
|
||||||
|
|
||||||
if (res->flags & IORESOURCE_IO)
|
|
||||||
root = &ioport_resource;
|
|
||||||
if (res->flags & IORESOURCE_MEM)
|
|
||||||
root = &iomem_resource;
|
|
||||||
|
|
||||||
return root;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ
|
#define HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ
|
||||||
static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
|
static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
|
||||||
{
|
{
|
||||||
|
|
|
@ -83,19 +83,6 @@ extern int pci_mmap_legacy_page_range(struct pci_bus *bus,
|
||||||
*/
|
*/
|
||||||
#define PCI_DMA_BUS_IS_PHYS (1)
|
#define PCI_DMA_BUS_IS_PHYS (1)
|
||||||
|
|
||||||
static inline struct resource *pcibios_select_root(struct pci_dev *pdev,
|
|
||||||
struct resource *res)
|
|
||||||
{
|
|
||||||
struct resource *root = NULL;
|
|
||||||
|
|
||||||
if (res->flags & IORESOURCE_IO)
|
|
||||||
root = &ioport_resource;
|
|
||||||
if (res->flags & IORESOURCE_MEM)
|
|
||||||
root = &iomem_resource;
|
|
||||||
|
|
||||||
return root;
|
|
||||||
}
|
|
||||||
|
|
||||||
extern void pcibios_claim_one_bus(struct pci_bus *b);
|
extern void pcibios_claim_one_bus(struct pci_bus *b);
|
||||||
|
|
||||||
extern void pcibios_finish_adding_to_bus(struct pci_bus *bus);
|
extern void pcibios_finish_adding_to_bus(struct pci_bus *bus);
|
||||||
|
|
|
@ -83,19 +83,6 @@ extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
|
||||||
/* implement the pci_ DMA API in terms of the generic device dma_ one */
|
/* implement the pci_ DMA API in terms of the generic device dma_ one */
|
||||||
#include <asm-generic/pci-dma-compat.h>
|
#include <asm-generic/pci-dma-compat.h>
|
||||||
|
|
||||||
static inline struct resource *
|
|
||||||
pcibios_select_root(struct pci_dev *pdev, struct resource *res)
|
|
||||||
{
|
|
||||||
struct resource *root = NULL;
|
|
||||||
|
|
||||||
if (res->flags & IORESOURCE_IO)
|
|
||||||
root = &ioport_resource;
|
|
||||||
if (res->flags & IORESOURCE_MEM)
|
|
||||||
root = &iomem_resource;
|
|
||||||
|
|
||||||
return root;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
|
static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
|
||||||
{
|
{
|
||||||
return channel ? 15 : 14;
|
return channel ? 15 : 14;
|
||||||
|
|
|
@ -6,19 +6,6 @@
|
||||||
#ifndef _ASM_GENERIC_PCI_H
|
#ifndef _ASM_GENERIC_PCI_H
|
||||||
#define _ASM_GENERIC_PCI_H
|
#define _ASM_GENERIC_PCI_H
|
||||||
|
|
||||||
static inline struct resource *
|
|
||||||
pcibios_select_root(struct pci_dev *pdev, struct resource *res)
|
|
||||||
{
|
|
||||||
struct resource *root = NULL;
|
|
||||||
|
|
||||||
if (res->flags & IORESOURCE_IO)
|
|
||||||
root = &ioport_resource;
|
|
||||||
if (res->flags & IORESOURCE_MEM)
|
|
||||||
root = &iomem_resource;
|
|
||||||
|
|
||||||
return root;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ
|
#ifndef HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ
|
||||||
static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
|
static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue