projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b97ea28
)
sparc/PCI: Claim bus resources before pci_bus_add_devices()
author
Yijing Wang
<wangyijing@huawei.com>
Thu, 12 Mar 2015 20:05:56 +0000
(15:05 -0500)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Thu, 19 Mar 2015 15:17:20 +0000
(10:17 -0500)
Pci_claim_bus_resources() should be called before pci_bus_add_devices(), or
driver may failed to load, because the resources had not claimed.
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/sparc/kernel/pci.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sparc/kernel/pci.c
b/arch/sparc/kernel/pci.c
index 9ce5afe167ff509288b21605a2f9a35f96ff36dc..9e267cae683e0b3b9d6de73917d9688ecf274e37 100644
(file)
--- a/
arch/sparc/kernel/pci.c
+++ b/
arch/sparc/kernel/pci.c
@@
-677,11
+677,10
@@
struct pci_bus *pci_scan_one_pbm(struct pci_pbm_info *pbm,
}
pci_of_scan_bus(pbm, node, bus);
- pci_bus_add_devices(bus);
pci_bus_register_of_sysfs(bus);
pci_claim_bus_resources(bus);
-
+ pci_bus_add_devices(bus);
return bus;
}
This page took
0.025047 seconds
and
5
git commands to generate.