Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203431
b: refs/heads/master
c: 7cc36f6
h: refs/heads/master
i:
  203429: f339830
  203427: 708d3ef
  203423: bcfc0fd
v: v3
  • Loading branch information
Kulikov Vasiliy authored and David S. Miller committed Jul 9, 2010
1 parent 170de0f commit b972751
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 9f1e7582749980b51da67671b2536aadca3596b8
refs/heads/master: 7cc36f6f7116918c8a8990a0f23f62d2288a81bf
5 changes: 4 additions & 1 deletion trunk/drivers/net/ll_temac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1031,19 +1031,22 @@ temac_of_probe(struct of_device *op, const struct of_device_id *match)
dev_dbg(&op->dev, "MEM base: %p\n", lp->sdma_regs);
} else {
dev_err(&op->dev, "unable to map DMA registers\n");
of_node_put(np);
goto err_iounmap;
}
}

lp->rx_irq = irq_of_parse_and_map(np, 0);
lp->tx_irq = irq_of_parse_and_map(np, 1);

of_node_put(np); /* Finished with the DMA node; drop the reference */

if ((lp->rx_irq == NO_IRQ) || (lp->tx_irq == NO_IRQ)) {
dev_err(&op->dev, "could not determine irqs\n");
rc = -ENOMEM;
goto err_iounmap_2;
}

of_node_put(np); /* Finished with the DMA node; drop the reference */

/* Retrieve the MAC address */
addr = of_get_property(op->dev.of_node, "local-mac-address", &size);
Expand Down

0 comments on commit b972751

Please sign in to comment.