diff options
Diffstat (limited to 'drivers/parisc/dino.c')
-rw-r--r-- | drivers/parisc/dino.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/parisc/dino.c b/drivers/parisc/dino.c index 3bc54b30c3a1..d539d9df88e7 100644 --- a/drivers/parisc/dino.c +++ b/drivers/parisc/dino.c | |||
@@ -287,7 +287,7 @@ DINO_PORT_OUT(b, 8, 3) | |||
287 | DINO_PORT_OUT(w, 16, 2) | 287 | DINO_PORT_OUT(w, 16, 2) |
288 | DINO_PORT_OUT(l, 32, 0) | 288 | DINO_PORT_OUT(l, 32, 0) |
289 | 289 | ||
290 | struct pci_port_ops dino_port_ops = { | 290 | static struct pci_port_ops dino_port_ops = { |
291 | .inb = dino_in8, | 291 | .inb = dino_in8, |
292 | .inw = dino_in16, | 292 | .inw = dino_in16, |
293 | .inl = dino_in32, | 293 | .inl = dino_in32, |
@@ -547,7 +547,7 @@ dino_card_fixup(struct pci_dev *dev) | |||
547 | ** The additional "-1" adjusts for skewing the IRQ<->slot. | 547 | ** The additional "-1" adjusts for skewing the IRQ<->slot. |
548 | */ | 548 | */ |
549 | dino_cfg_read(dev->bus, dev->devfn, PCI_INTERRUPT_PIN, 1, &irq_pin); | 549 | dino_cfg_read(dev->bus, dev->devfn, PCI_INTERRUPT_PIN, 1, &irq_pin); |
550 | dev->irq = (irq_pin + PCI_SLOT(dev->devfn) - 1) % 4 ; | 550 | dev->irq = pci_swizzle_interrupt_pin(dev, irq_pin) - 1; |
551 | 551 | ||
552 | /* Shouldn't really need to do this but it's in case someone tries | 552 | /* Shouldn't really need to do this but it's in case someone tries |
553 | ** to bypass PCI services and look at the card themselves. | 553 | ** to bypass PCI services and look at the card themselves. |
@@ -672,7 +672,7 @@ dino_fixup_bus(struct pci_bus *bus) | |||
672 | 672 | ||
673 | dino_cfg_read(dev->bus, dev->devfn, | 673 | dino_cfg_read(dev->bus, dev->devfn, |
674 | PCI_INTERRUPT_PIN, 1, &irq_pin); | 674 | PCI_INTERRUPT_PIN, 1, &irq_pin); |
675 | irq_pin = (irq_pin + PCI_SLOT(dev->devfn) - 1) % 4 ; | 675 | irq_pin = pci_swizzle_interrupt_pin(dev, irq_pin) - 1; |
676 | printk(KERN_WARNING "Device %s has undefined IRQ, " | 676 | printk(KERN_WARNING "Device %s has undefined IRQ, " |
677 | "setting to %d\n", pci_name(dev), irq_pin); | 677 | "setting to %d\n", pci_name(dev), irq_pin); |
678 | dino_cfg_write(dev->bus, dev->devfn, | 678 | dino_cfg_write(dev->bus, dev->devfn, |
@@ -690,7 +690,7 @@ dino_fixup_bus(struct pci_bus *bus) | |||
690 | } | 690 | } |
691 | 691 | ||
692 | 692 | ||
693 | struct pci_bios_ops dino_bios_ops = { | 693 | static struct pci_bios_ops dino_bios_ops = { |
694 | .init = dino_bios_init, | 694 | .init = dino_bios_init, |
695 | .fixup_bus = dino_fixup_bus | 695 | .fixup_bus = dino_fixup_bus |
696 | }; | 696 | }; |