Commit 9ee61794 authored by Robert Elliott's avatar Robert Elliott Committed by James Bottomley

hpsa: rename hpsa_request_irq to hpsa_request_irqs

Make the function name more descriptive. We use more than
one interrupt.
Reviewed-by: default avatarScott Teel <scott.teel@pmcs.com>
Signed-off-by: default avatarRobert Elliott <elliott@hp.com>
Signed-off-by: default avatarDon Brace <don.brace@pmcs.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent cd3c81c4
...@@ -6526,7 +6526,8 @@ static void hpsa_free_irqs(struct ctlr_info *h) ...@@ -6526,7 +6526,8 @@ static void hpsa_free_irqs(struct ctlr_info *h)
h->q[i] = 0; h->q[i] = 0;
} }
static int hpsa_request_irq(struct ctlr_info *h, /* returns 0 on success; cleans up and returns -Enn on error */
static int hpsa_request_irqs(struct ctlr_info *h,
irqreturn_t (*msixhandler)(int, void *), irqreturn_t (*msixhandler)(int, void *),
irqreturn_t (*intxhandler)(int, void *)) irqreturn_t (*intxhandler)(int, void *))
{ {
...@@ -6934,7 +6935,7 @@ static int hpsa_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -6934,7 +6935,7 @@ static int hpsa_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
/* make sure the board interrupts are off */ /* make sure the board interrupts are off */
h->access.set_intr_mask(h, HPSA_INTR_OFF); h->access.set_intr_mask(h, HPSA_INTR_OFF);
if (hpsa_request_irq(h, do_hpsa_intr_msi, do_hpsa_intr_intx)) if (hpsa_request_irqs(h, do_hpsa_intr_msi, do_hpsa_intr_intx))
goto clean2; goto clean2;
dev_info(&pdev->dev, "%s: <0x%x> at IRQ %d%s using DAC\n", dev_info(&pdev->dev, "%s: <0x%x> at IRQ %d%s using DAC\n",
h->devname, pdev->device, h->devname, pdev->device,
...@@ -6970,11 +6971,11 @@ static int hpsa_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -6970,11 +6971,11 @@ static int hpsa_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
h->access.set_intr_mask(h, HPSA_INTR_OFF); h->access.set_intr_mask(h, HPSA_INTR_OFF);
spin_unlock_irqrestore(&h->lock, flags); spin_unlock_irqrestore(&h->lock, flags);
hpsa_free_irqs(h); hpsa_free_irqs(h);
rc = hpsa_request_irq(h, hpsa_msix_discard_completions, rc = hpsa_request_irqs(h, hpsa_msix_discard_completions,
hpsa_intx_discard_completions); hpsa_intx_discard_completions);
if (rc) { if (rc) {
dev_warn(&h->pdev->dev, "Failed to request_irq after " dev_warn(&h->pdev->dev,
"soft reset.\n"); "Failed to request_irq after soft reset.\n");
goto clean4; goto clean4;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment