diff options
Diffstat (limited to 'linux')
-rw-r--r-- | linux/dev/drivers/block/ahci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/dev/drivers/block/ahci.c b/linux/dev/drivers/block/ahci.c index dbc8fdb..ceded7c 100644 --- a/linux/dev/drivers/block/ahci.c +++ b/linux/dev/drivers/block/ahci.c @@ -745,6 +745,9 @@ static void ahci_probe_dev(unsigned char bus, unsigned char device) unsigned bar; unsigned char irq; + dev = PCI_SLOT(device); + fun = PCI_FUNC(device); + /* Get configuration */ if (pcibios_read_config_byte(bus, device, PCI_HEADER_TYPE, &hdrtype) != PCIBIOS_SUCCESSFUL) { printk("ahci: %02u:%02u.%u: Can not read configuration", bus, dev, fun); @@ -771,8 +774,6 @@ static void ahci_probe_dev(unsigned char bus, unsigned char device) return; } - dev = PCI_SLOT(device); - fun = PCI_FUNC(device); printk("AHCI SATA %02u:%02u.%u BAR 0x%x IRQ %u\n", bus, dev, fun, bar, irq); /* Map mmio */ |