[PATCH] net/fs_enet/mii-fec: Use PHY_POLL instead of hard coded '-1'
Wolfram Sang
w.sang at pengutronix.de
Sat May 9 00:00:01 EST 2009
Initialize the irq-table with PHY_POLL. '-1' means the same now, but is
hardly maintainable.
Signed-off-by: Wolfram Sang <w.sang at pengutronix.de>
Cc: Vitaly Bordug <vbordug at ru.mvista.com>
Cc: Pantelis Antoniou <pantelis.antoniou at gmail.com>
Cc: Grant Likely <grant.likely at secretlab.ca>
Cc: netdev at vger.kernel.org
Cc: linuxppc-dev at ozlabs.org
---
drivers/net/fs_enet/mii-fec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/fs_enet/mii-fec.c b/drivers/net/fs_enet/mii-fec.c
index 28077cc..9eb5480 100644
--- a/drivers/net/fs_enet/mii-fec.c
+++ b/drivers/net/fs_enet/mii-fec.c
@@ -166,7 +166,7 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev,
goto out_unmap_regs;
for (i = 0; i < PHY_MAX_ADDR; i++)
- new_bus->irq[i] = -1;
+ new_bus->irq[i] = PHY_POLL;
while ((np = of_get_next_child(ofdev->node, np)))
if (!strcmp(np->type, "ethernet-phy"))
--
1.6.2
More information about the Linuxppc-dev
mailing list