tile PCI RC: Use default pcibios_enable_device()
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 26 Feb 2014 23:10:25 +0000 (16:10 -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: pci_enable_resources() checks that r->parent is non-NULL, which
basically checks that pci_claim_resource() or request_resource() has been
called for each BAR.  I don't see where that happens for tile, but this
patch doesn't change that behavior, so if it worked before, it should still
work.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/kernel/pci_gx.c

index a97a6452b812cdb9681d49fb4130ab3403ff3d2d..077b7bc437e5f6a54e5ad28e42e89e524001dbf0 100644 (file)
@@ -1064,18 +1064,6 @@ char *__init pcibios_setup(char *str)
        return str;
 }
 
-/*
- * Enable memory address decoding, as appropriate, for the
- * device described by the 'dev' struct.
- *
- * This is called from the generic PCI layer, and can be called
- * for bridges or endpoints.
- */
-int pcibios_enable_device(struct pci_dev *dev, int mask)
-{
-       return pci_enable_resources(dev, mask);
-}
-
 /*
  * Called for each device after PCI setup is done.
  * We initialize the PCI device capabilities conservatively, assuming that
This page took 0.028719 seconds and 5 git commands to generate.