projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cedcc3
)
PCI: Add "weak" generic pcibios_enable_device() implementation
author
Bjorn Helgaas
<bhelgaas@google.com>
Wed, 26 Feb 2014 18:26:00 +0000
(11:26 -0700)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Wed, 19 Mar 2014 21:00:14 +0000
(15:00 -0600)
Many architectures implement pcibios_enable_device() the same way, so
provide a default implementation in the core.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c
patch
|
blob
|
history
diff --git
a/drivers/pci/pci.c
b/drivers/pci/pci.c
index dc9ce62be7aaf41d9d6514d9080a2a0028d58a64..c3ce3d61091c2c5318a98659c334b8054846da8b 100644
(file)
--- a/
drivers/pci/pci.c
+++ b/
drivers/pci/pci.c
@@
-1185,6
+1185,11
@@
int pci_load_and_free_saved_state(struct pci_dev *dev,
}
EXPORT_SYMBOL_GPL(pci_load_and_free_saved_state);
+int __weak pcibios_enable_device(struct pci_dev *dev, int bars)
+{
+ return pci_enable_resources(dev, bars);
+}
+
static int do_pci_enable_device(struct pci_dev *dev, int bars)
{
int err;