Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113063
b: refs/heads/master
c: ae05f87
h: refs/heads/master
i:
  113061: d5ee55f
  113059: bd18e4a
  113055: 95dad33
v: v3
  • Loading branch information
David S. Miller committed Aug 30, 2008
1 parent 49e48ec commit a328126
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: e21e245bcd9d5244735799387d14421789b20557
refs/heads/master: ae05f87ee2f403228bca6d28fef29d6be0bfbedc
8 changes: 6 additions & 2 deletions trunk/arch/sparc64/kernel/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm,
struct pci_bus *bus, int devfn)
{
struct dev_archdata *sd;
struct of_device *op;
struct pci_dev *dev;
const char *type;
u32 class;
Expand All @@ -350,14 +351,17 @@ struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm,
sd->stc = &pbm->stc;
sd->host_controller = pbm;
sd->prom_node = node;
sd->op = of_find_device_by_node(node);
sd->op = op = of_find_device_by_node(node);
sd->numa_node = pbm->numa_node;

sd = &sd->op->dev.archdata;
sd = &op->dev.archdata;
sd->iommu = pbm->iommu;
sd->stc = &pbm->stc;
sd->numa_node = pbm->numa_node;

if (!strcmp(node->name, "ebus"))
of_propagate_archdata(op);

type = of_get_property(node, "device_type", NULL);
if (type == NULL)
type = "";
Expand Down

0 comments on commit a328126

Please sign in to comment.