Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42707
b: refs/heads/master
c: 074cec5
h: refs/heads/master
i:
  42705: 6feea1b
  42703: c8c6753
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Dec 7, 2006
1 parent 92ac70d commit 054bf44
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 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: 3869aa292fbd24103b8338937cb351459efe3f82
refs/heads/master: 074cec54d1049ab580ecd0026623b553e0e270c4
3 changes: 2 additions & 1 deletion trunk/arch/alpha/kernel/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,11 @@ sys_pciconfig_iobase(long which, unsigned long bus, unsigned long dfn)
if (bus == 0 && dfn == 0) {
hose = pci_isa_hose;
} else {
dev = pci_find_slot(bus, dfn);
dev = pci_get_bus_and_slot(bus, dfn);
if (!dev)
return -ENODEV;
hose = dev->sysdata;
pci_dev_put(dev);
}
}

Expand Down
10 changes: 7 additions & 3 deletions trunk/arch/alpha/kernel/sys_miata.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,15 @@ miata_map_irq(struct pci_dev *dev, u8 slot, u8 pin)

if((slot == 7) && (PCI_FUNC(dev->devfn) == 3)) {
u8 irq=0;

if(pci_read_config_byte(pci_find_slot(dev->bus->number, dev->devfn & ~(7)), 0x40,&irq)!=PCIBIOS_SUCCESSFUL)
struct pci_dev *pdev = pci_get_slot(dev->bus, dev->devfn & ~7);
if(pdev == NULL || pci_read_config_byte(pdev, 0x40,&irq) != PCIBIOS_SUCCESSFUL) {
pci_dev_put(pdev);
return -1;
else
}
else {
pci_dev_put(pdev);
return irq;
}
}

return COMMON_TABLE_LOOKUP;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/alpha/kernel/sys_nautilus.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ nautilus_init_pci(void)
bus = pci_scan_bus(0, alpha_mv.pci_ops, hose);
hose->bus = bus;

irongate = pci_find_slot(0, 0);
irongate = pci_get_bus_and_slot(0, 0);
bus->self = irongate;
bus->resource[1] = &irongate_mem;

Expand Down

0 comments on commit 054bf44

Please sign in to comment.