OSDN Git Service

sparc/PCI: Use default pcibios_enable_device() (Leon only)
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 26 Feb 2014 22:18:44 +0000 (15:18 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 19 Mar 2014 21:00:15 +0000 (15:00 -0600)
We don't need anything arch-specific in pcibios_enable_device() so drop
the arch implementation and use the default generic one.

Note that sparc has two pcibios_enable_device() implementations other than
the one removed here.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Daniel Hellstrom <daniel@gaisler.com
arch/sparc/kernel/leon_pci.c

index 88aaaa5..e16c415 100644 (file)
@@ -99,11 +99,6 @@ resource_size_t pcibios_align_resource(void *data, const struct resource *res,
        return res->start;
 }
 
-int pcibios_enable_device(struct pci_dev *dev, int mask)
-{
-       return pci_enable_resources(dev, mask);
-}
-
 /* in/out routines taken from pcic.c
  *
  * This probably belongs here rather than ioport.c because