Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139389
b: refs/heads/master
c: 853346e
h: refs/heads/master
i:
  139387: 04031a8
v: v3
  • Loading branch information
Yu Zhao authored and Jesse Barnes committed Mar 26, 2009
1 parent 9f9a8d2 commit e59380e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: ceb93a9ff16612314d757874b6415ffbb2091576
refs/heads/master: 853346e4354c948b50a6fb0002f8af2cf5fbf2ae
7 changes: 3 additions & 4 deletions trunk/drivers/pci/probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,6 @@ int pci_setup_device(struct pci_dev *dev)
dev->dev.bus = &pci_bus_type;
dev->hdr_type = hdr_type & 0x7f;
dev->multifunction = !!(hdr_type & 0x80);
dev->cfg_size = pci_cfg_space_size(dev);
dev->error_state = pci_channel_io_normal;
set_pcie_port_type(dev);

Expand All @@ -738,6 +737,9 @@ int pci_setup_device(struct pci_dev *dev)
dev_dbg(&dev->dev, "found [%04x:%04x] class %06x header type %02x\n",
dev->vendor, dev->device, class, dev->hdr_type);

/* need to have dev->class ready */
dev->cfg_size = pci_cfg_space_size(dev);

/* "Unknown power state" */
dev->current_state = PCI_UNKNOWN;

Expand Down Expand Up @@ -959,9 +961,6 @@ static struct pci_dev *pci_scan_device(struct pci_bus *bus, int devfn)
return NULL;
}

/* need to have dev->class ready */
dev->cfg_size = pci_cfg_space_size(dev);

return dev;
}

Expand Down

0 comments on commit e59380e

Please sign in to comment.