Skip to content

Commit

Permalink
net: ethernet: xilinx: Don't use NO_IRQ in xilinx
Browse files Browse the repository at this point in the history
Fix ll_temac and emaclite drivers. Only Microblaze and Xilinx PPC
use then and both use NO_IRQ as 0. It will be removed in near future.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Michal Simek authored and David S. Miller committed Dec 21, 2011
1 parent ab56222 commit 4e68ea2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/xilinx/ll_temac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ static int __devinit temac_of_probe(struct platform_device *op)

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

if ((lp->rx_irq == NO_IRQ) || (lp->tx_irq == NO_IRQ)) {
if (!lp->rx_irq || !lp->tx_irq) {
dev_err(&op->dev, "could not determine irqs\n");
rc = -ENOMEM;
goto err_iounmap_2;
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ethernet/xilinx/xilinx_emaclite.c
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ static int __devinit xemaclite_of_probe(struct platform_device *ofdev)

/* Get IRQ for the device */
rc = of_irq_to_resource(ofdev->dev.of_node, 0, &r_irq);
if (rc == NO_IRQ) {
if (!rc) {
dev_err(dev, "no IRQ found\n");
return rc;
}
Expand Down

0 comments on commit 4e68ea2

Please sign in to comment.