aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/ahci.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/scsi/ahci.c b/drivers/scsi/ahci.c
index 1c2ab3dede71..00dfdefe2967 100644
--- a/drivers/scsi/ahci.c
+++ b/drivers/scsi/ahci.c
@@ -778,23 +778,17 @@ static irqreturn_t ahci_interrupt (int irq, void *dev_instance, struct pt_regs *
778 struct ata_queued_cmd *qc; 778 struct ata_queued_cmd *qc;
779 qc = ata_qc_from_tag(ap, ap->active_tag); 779 qc = ata_qc_from_tag(ap, ap->active_tag);
780 if (!ahci_host_intr(ap, qc)) 780 if (!ahci_host_intr(ap, qc))
781 if (ata_ratelimit()) { 781 if (ata_ratelimit())
782 struct pci_dev *pdev = 782 dev_printk(KERN_WARNING, host_set->dev,
783 to_pci_dev(ap->host_set->dev);
784 dev_printk(KERN_WARNING, &pdev->dev,
785 "unhandled interrupt on port %u\n", 783 "unhandled interrupt on port %u\n",
786 i); 784 i);
787 }
788 785
789 VPRINTK("port %u\n", i); 786 VPRINTK("port %u\n", i);
790 } else { 787 } else {
791 VPRINTK("port %u (no irq)\n", i); 788 VPRINTK("port %u (no irq)\n", i);
792 if (ata_ratelimit()) { 789 if (ata_ratelimit())
793 struct pci_dev *pdev = 790 dev_printk(KERN_WARNING, host_set->dev,
794 to_pci_dev(ap->host_set->dev);
795 dev_printk(KERN_WARNING, &pdev->dev,
796 "interrupt on disabled port %u\n", i); 791 "interrupt on disabled port %u\n", i);
797 }
798 } 792 }
799 793
800 irq_ack |= (1 << i); 794 irq_ack |= (1 << i);