diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ata/ahci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 545f330e59a5..ca5229d24d8e 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c | |||
@@ -527,7 +527,7 @@ static void ahci_save_initial_config(struct pci_dev *pdev, | |||
527 | 527 | ||
528 | /* fixup zero port_map */ | 528 | /* fixup zero port_map */ |
529 | if (!port_map) { | 529 | if (!port_map) { |
530 | port_map = (1 << ahci_nr_ports(hpriv->cap)) - 1; | 530 | port_map = (1 << ahci_nr_ports(cap)) - 1; |
531 | dev_printk(KERN_WARNING, &pdev->dev, | 531 | dev_printk(KERN_WARNING, &pdev->dev, |
532 | "PORTS_IMPL is zero, forcing 0x%x\n", port_map); | 532 | "PORTS_IMPL is zero, forcing 0x%x\n", port_map); |
533 | 533 | ||