Skip to content

Commit 4e68ea2

Browse files
michalsimekdavem330
authored andcommitted
net: ethernet: xilinx: Don't use NO_IRQ in xilinx
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ab56222 commit 4e68ea2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/net/ethernet/xilinx/ll_temac_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ static int __devinit temac_of_probe(struct platform_device *op)
10911091

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

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

drivers/net/ethernet/xilinx/xilinx_emaclite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ static int __devinit xemaclite_of_probe(struct platform_device *ofdev)
11291129

11301130
/* Get IRQ for the device */
11311131
rc = of_irq_to_resource(ofdev->dev.of_node, 0, &r_irq);
1132-
if (rc == NO_IRQ) {
1132+
if (!rc) {
11331133
dev_err(dev, "no IRQ found\n");
11341134
return rc;
11351135
}

0 commit comments

Comments
 (0)