Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259445
b: refs/heads/master
c: 9aaa995
h: refs/heads/master
i:
  259443: 0afce30
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent b118b72 commit 4477282
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: 3e1edf6a6c0c4140bb6c22fe880d924f4d10b164
refs/heads/master: 9aaa995e6af6ede7b06e3379d09ae70065c04d82
14 changes: 7 additions & 7 deletions trunk/drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ static irqreturn_t vmbus_isr(int irq, void *dev_id)
* - get the irq resource
* - retrieve the channel offers
*/
static int vmbus_bus_init(struct pci_dev *pdev)
static int vmbus_bus_init(int irq)
{
int ret;
unsigned int vector;
Expand All @@ -552,21 +552,21 @@ static int vmbus_bus_init(struct pci_dev *pdev)
}

/* Get the interrupt resource */
ret = request_irq(pdev->irq, vmbus_isr,
ret = request_irq(irq, vmbus_isr,
IRQF_SHARED | IRQF_SAMPLE_RANDOM,
driver_name, pdev);
driver_name, hv_pci_dev);

if (ret != 0) {
pr_err("Unable to request IRQ %d\n",
pdev->irq);
irq);

bus_unregister(&hv_bus);

ret = -1;
goto cleanup;
}

vector = IRQ0_VECTOR + pdev->irq;
vector = IRQ0_VECTOR + irq;

/*
* Notify the hypervisor of our irq and
Expand All @@ -575,7 +575,7 @@ static int vmbus_bus_init(struct pci_dev *pdev)
on_each_cpu(hv_synic_init, (void *)&vector, 1);
ret = vmbus_connect();
if (ret) {
free_irq(pdev->irq, pdev);
free_irq(irq, hv_pci_dev);
bus_unregister(&hv_bus);
goto cleanup;
}
Expand Down Expand Up @@ -795,7 +795,7 @@ static int __devinit hv_pci_probe(struct pci_dev *pdev,
if (pdev->irq == 0)
pdev->irq = irq;

pci_probe_error = vmbus_bus_init(pdev);
pci_probe_error = vmbus_bus_init(pdev->irq);

if (pci_probe_error)
pci_disable_device(pdev);
Expand Down

0 comments on commit 4477282

Please sign in to comment.