projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cda0fc
)
PCI: cpqhp: register busn_res
author
Yinghai Lu
<yinghai@kernel.org>
Fri, 18 May 2012 01:51:13 +0000
(18:51 -0700)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Wed, 13 Jun 2012 21:42:25 +0000
(15:42 -0600)
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/cpqphp_pci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/hotplug/cpqphp_pci.c
b/drivers/pci/hotplug/cpqphp_pci.c
index 1c8494021a42762ac7b6270ae519df9c44355669..24716725263f0e7869158291a33e5b781584229a 100644
(file)
--- a/
drivers/pci/hotplug/cpqphp_pci.c
+++ b/
drivers/pci/hotplug/cpqphp_pci.c
@@
-106,9
+106,11
@@
int cpqhp_configure_device (struct controller* ctrl, struct pci_func* func)
}
if (func->pci_dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) {
+ int max;
pci_read_config_byte(func->pci_dev, PCI_SECONDARY_BUS, &bus);
child = (struct pci_bus*) pci_add_new_bus(func->pci_dev->bus, (func->pci_dev), bus);
- pci_do_scan_bus(child);
+ max = pci_do_scan_bus(child);
+ pci_bus_update_busn_res_end(child, max);
}
pci_dev_put(func->pci_dev);