Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180069
b: refs/heads/master
c: 26b4a0c
h: refs/heads/master
i:
  180067: 8d56c9d
v: v3
  • Loading branch information
Benjamin Herrenschmidt committed Jan 29, 2010
1 parent ab60b6a commit e4ef036
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bb209c8287d2d55ec4a67e3933346e0a3ee0da76
refs/heads/master: 26b4a0ca46985ae9586c194f7859f3838b1230f8
5 changes: 5 additions & 0 deletions trunk/arch/powerpc/kernel/pci_of_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ struct pci_dev *of_create_pci_dev(struct device_node *node,
{
struct pci_dev *dev;
const char *type;
struct pci_slot *slot;

dev = alloc_pci_dev();
if (!dev)
Expand All @@ -142,6 +143,10 @@ struct pci_dev *of_create_pci_dev(struct device_node *node,
dev->needs_freset = 0; /* pcie fundamental reset required */
set_pcie_port_type(dev);

list_for_each_entry(slot, &dev->bus->slots, list)
if (PCI_SLOT(dev->devfn) == slot->number)
dev->slot = slot;

dev->vendor = get_int_prop(node, "vendor-id", 0xffff);
dev->device = get_int_prop(node, "device-id", 0xffff);
dev->subsystem_vendor = get_int_prop(node, "subsystem-vendor-id", 0);
Expand Down

0 comments on commit e4ef036

Please sign in to comment.