Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299921
b: refs/heads/master
c: c2f1244
h: refs/heads/master
i:
  299919: 426d98e
v: v3
  • Loading branch information
Thadeu Lima de Souza Cascardo authored and David S. Miller committed Apr 24, 2012
1 parent 03ca314 commit 92a48b3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 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: e6e056baa24b48642b86129e8a3fdaa98f2fe947
refs/heads/master: c2f1244b86492b6cc89202f3f9ed43c88fb3e79d
30 changes: 18 additions & 12 deletions trunk/drivers/net/ethernet/ibm/ehea/ehea_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3261,6 +3261,7 @@ static int __devinit ehea_probe_adapter(struct platform_device *dev,
struct ehea_adapter *adapter;
const u64 *adapter_handle;
int ret;
int i;

if (!dev || !dev->dev.of_node) {
pr_err("Invalid ibmebus device probed\n");
Expand Down Expand Up @@ -3314,33 +3315,38 @@ static int __devinit ehea_probe_adapter(struct platform_device *dev,
tasklet_init(&adapter->neq_tasklet, ehea_neq_tasklet,
(unsigned long)adapter);

ret = ibmebus_request_irq(adapter->neq->attr.ist1,
ehea_interrupt_neq, IRQF_DISABLED,
"ehea_neq", adapter);
if (ret) {
dev_err(&dev->dev, "requesting NEQ IRQ failed\n");
goto out_kill_eq;
}

ret = ehea_create_device_sysfs(dev);
if (ret)
goto out_free_irq;
goto out_kill_eq;

ret = ehea_setup_ports(adapter);
if (ret) {
dev_err(&dev->dev, "setup_ports failed\n");
goto out_rem_dev_sysfs;
}

ret = ibmebus_request_irq(adapter->neq->attr.ist1,
ehea_interrupt_neq, IRQF_DISABLED,
"ehea_neq", adapter);
if (ret) {
dev_err(&dev->dev, "requesting NEQ IRQ failed\n");
goto out_shutdown_ports;
}


ret = 0;
goto out;

out_shutdown_ports:
for (i = 0; i < EHEA_MAX_PORTS; i++)
if (adapter->port[i]) {
ehea_shutdown_single_port(adapter->port[i]);
adapter->port[i] = NULL;
}

out_rem_dev_sysfs:
ehea_remove_device_sysfs(dev);

out_free_irq:
ibmebus_free_irq(adapter->neq->attr.ist1, adapter);

out_kill_eq:
ehea_destroy_eq(adapter->neq);

Expand Down

0 comments on commit 92a48b3

Please sign in to comment.