diff options
author | Michal Simek <monstr@monstr.eu> | 2011-12-21 15:42:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-21 15:42:50 -0500 |
commit | 4e68ea26e76273cc62a981a414a8319a7f4c1077 (patch) | |
tree | 085b3639500a2a45077fc6076b4907e051e83de1 /drivers/net/ethernet/xilinx | |
parent | ab56222a32b9dbaae19c1d37f07b0ac4fc3c27ec (diff) |
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 <monstr@monstr.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/xilinx')
-rw-r--r-- | drivers/net/ethernet/xilinx/ll_temac_main.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/xilinx/xilinx_emaclite.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c index 903a77b416df..f21addb1db95 100644 --- a/drivers/net/ethernet/xilinx/ll_temac_main.c +++ b/drivers/net/ethernet/xilinx/ll_temac_main.c | |||
@@ -1091,7 +1091,7 @@ static int __devinit temac_of_probe(struct platform_device *op) | |||
1091 | 1091 | ||
1092 | of_node_put(np); /* Finished with the DMA node; drop the reference */ | 1092 | of_node_put(np); /* Finished with the DMA node; drop the reference */ |
1093 | 1093 | ||
1094 | if ((lp->rx_irq == NO_IRQ) || (lp->tx_irq == NO_IRQ)) { | 1094 | if (!lp->rx_irq || !lp->tx_irq) { |
1095 | dev_err(&op->dev, "could not determine irqs\n"); | 1095 | dev_err(&op->dev, "could not determine irqs\n"); |
1096 | rc = -ENOMEM; | 1096 | rc = -ENOMEM; |
1097 | goto err_iounmap_2; | 1097 | goto err_iounmap_2; |
diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c index 7f9f6e3a4c43..79013e5731a5 100644 --- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c +++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c | |||
@@ -1129,7 +1129,7 @@ static int __devinit xemaclite_of_probe(struct platform_device *ofdev) | |||
1129 | 1129 | ||
1130 | /* Get IRQ for the device */ | 1130 | /* Get IRQ for the device */ |
1131 | rc = of_irq_to_resource(ofdev->dev.of_node, 0, &r_irq); | 1131 | rc = of_irq_to_resource(ofdev->dev.of_node, 0, &r_irq); |
1132 | if (rc == NO_IRQ) { | 1132 | if (!rc) { |
1133 | dev_err(dev, "no IRQ found\n"); | 1133 | dev_err(dev, "no IRQ found\n"); |
1134 | return rc; | 1134 | return rc; |
1135 | } | 1135 | } |