Commit 7dc25f5c authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] kill pcibios in m6k8

parent c0fa2ad2
...@@ -311,26 +311,24 @@ static void __init hades_fixup(int pci_modify) ...@@ -311,26 +311,24 @@ static void __init hades_fixup(int pci_modify)
slot = PCI_SLOT(dev->devfn); /* Determine slot number. */ slot = PCI_SLOT(dev->devfn); /* Determine slot number. */
dev->irq = irq_tab[slot]; dev->irq = irq_tab[slot];
if (pci_modify) if (pci_modify)
pcibios_write_config_byte(dev->bus->number, dev->devfn, pci_write_config_byte(dev, PCI_INTERRUPT_LINE, dev->irq);
PCI_INTERRUPT_LINE, dev->irq);
} }
} }
} }
/* /*
* static void hades_conf_device(unsigned char bus, unsigned char device_fn) * static void hades_conf_device(struct pci_dev *dev)
* *
* Machine dependent Configure the given device. * Machine dependent Configure the given device.
* *
* Parameters: * Parameters:
* *
* bus - bus number of the device. * dev - the pci device.
* device_fn - device and function number of the device.
*/ */
static void __init hades_conf_device(unsigned char bus, unsigned char device_fn) static void __init hades_conf_device(struct pci_dev *dev)
{ {
pcibios_write_config_byte(bus, device_fn, PCI_CACHE_LINE_SIZE, 0); pci_write_config_byte(dev, PCI_CACHE_LINE_SIZE, 0);
} }
static struct pci_ops hades_pci_ops = { static struct pci_ops hades_pci_ops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment