mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 18:11:20 +00:00
Rename pci_init() to pci_apply_final_quirks(), move it to quirks.c
This function may have done more in the past, but all it does now is apply the PCI_FIXUP_FINAL quirks. So name it sensibly and put it where it belongs. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
e0fc7e0b4b
commit
8d86fb2c80
2 changed files with 13 additions and 13 deletions
|
@ -2719,17 +2719,6 @@ int __attribute__ ((weak)) pci_ext_cfg_avail(struct pci_dev *dev)
|
||||||
return 1;
|
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)
|
static int __init pci_setup(char *str)
|
||||||
{
|
{
|
||||||
while (str) {
|
while (str) {
|
||||||
|
@ -2767,8 +2756,6 @@ static int __init pci_setup(char *str)
|
||||||
}
|
}
|
||||||
early_param("pci", pci_setup);
|
early_param("pci", pci_setup);
|
||||||
|
|
||||||
device_initcall(pci_init);
|
|
||||||
|
|
||||||
EXPORT_SYMBOL(pci_reenable_device);
|
EXPORT_SYMBOL(pci_reenable_device);
|
||||||
EXPORT_SYMBOL(pci_enable_device_io);
|
EXPORT_SYMBOL(pci_enable_device_io);
|
||||||
EXPORT_SYMBOL(pci_enable_device_mem);
|
EXPORT_SYMBOL(pci_enable_device_mem);
|
||||||
|
|
|
@ -2572,6 +2572,19 @@ void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev)
|
||||||
}
|
}
|
||||||
pci_do_fixups(dev, start, end);
|
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
|
#else
|
||||||
void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev) {}
|
void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue