Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283381
b: refs/heads/master
c: 6f17dd1
h: refs/heads/master
i:
  283379: b12cf32
v: v3
  • Loading branch information
Bjorn Helgaas authored and Jesse Barnes committed Jan 6, 2012
1 parent 759ea28 commit cce8e3f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 45a709f890a7b84930942a5f5f82011312fe727c
refs/heads/master: 6f17dd1ba96bb857fc1e8ab0357a6a0a09935baf
20 changes: 10 additions & 10 deletions trunk/arch/sh/drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,15 @@ static void __devinit pcibios_scanbus(struct pci_channel *hose)
{
static int next_busno;
static int need_domain_info;
LIST_HEAD(resources);
int i;
struct pci_bus *bus;

bus = pci_scan_bus(next_busno, hose->pci_ops, hose);
for (i = 0; i < hose->nr_resources; i++)
pci_add_resource(&resources, hose->resources + i);

bus = pci_scan_root_bus(NULL, next_busno, hose->pci_ops, hose,
&resources);
hose->bus = bus;

need_domain_info = need_domain_info || hose->index;
Expand All @@ -55,6 +61,8 @@ static void __devinit pcibios_scanbus(struct pci_channel *hose)
pci_bus_size_bridges(bus);
pci_bus_assign_resources(bus);
pci_enable_bridges(bus);
} else {
pci_free_resource_list(&resources);
}
}

Expand Down Expand Up @@ -162,16 +170,8 @@ static void pcibios_fixup_device_resources(struct pci_dev *dev,
*/
void __devinit pcibios_fixup_bus(struct pci_bus *bus)
{
struct pci_dev *dev = bus->self;
struct pci_dev *dev;
struct list_head *ln;
struct pci_channel *hose = bus->sysdata;

if (!dev) {
int i;

for (i = 0; i < hose->nr_resources; i++)
bus->resource[i] = hose->resources + i;
}

for (ln = bus->devices.next; ln != &bus->devices; ln = ln->next) {
dev = pci_dev_b(ln);
Expand Down

0 comments on commit cce8e3f

Please sign in to comment.