Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167391
b: refs/heads/master
c: 8d86fb2
h: refs/heads/master
i:
  167389: 4906bd1
  167387: 7d2502b
  167383: d4fc864
  167375: f7ae91a
  167359: 0c625b6
v: v3
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Oct 12, 2009
1 parent fd513f1 commit b3aab13
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 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: e0fc7e0b4b5e69616f10a894ab9afff3c64be74e
refs/heads/master: 8d86fb2c80ec376b35ae64ac858d406ae1d42a3f
13 changes: 0 additions & 13 deletions trunk/drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2719,17 +2719,6 @@ int __attribute__ ((weak)) pci_ext_cfg_avail(struct pci_dev *dev)
return 1;
}

static int __devinit pci_init(void)
{
struct pci_dev *dev = NULL;

while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
pci_fixup_device(pci_fixup_final, dev);
}

return 0;
}

static int __init pci_setup(char *str)
{
while (str) {
Expand Down Expand Up @@ -2767,8 +2756,6 @@ static int __init pci_setup(char *str)
}
early_param("pci", pci_setup);

device_initcall(pci_init);

EXPORT_SYMBOL(pci_reenable_device);
EXPORT_SYMBOL(pci_enable_device_io);
EXPORT_SYMBOL(pci_enable_device_mem);
Expand Down
13 changes: 13 additions & 0 deletions trunk/drivers/pci/quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -2572,6 +2572,19 @@ void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev)
}
pci_do_fixups(dev, start, end);
}

static int __devinit pci_apply_final_quirks(void)
{
struct pci_dev *dev = NULL;

while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
pci_fixup_device(pci_fixup_final, dev);
}

return 0;
}

device_initcall(pci_apply_final_quirks);
#else
void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev) {}
#endif
Expand Down

0 comments on commit b3aab13

Please sign in to comment.