From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [92.198.50.35]) by ozlabs.org (Postfix) with ESMTP id C9D2FDDF7E for ; Sat, 9 May 2009 00:00:11 +1000 (EST) From: Wolfram Sang To: w.sang@pengutronix.de Subject: [PATCH] net/fs_enet/mii-fec: Use PHY_POLL instead of hard coded '-1' Date: Fri, 8 May 2009 16:00:01 +0200 Message-Id: <1241791201-23960-1-git-send-email-w.sang@pengutronix.de> Cc: netdev@vger.kernel.org, linuxppc-dev@ozlabs.org, Vitaly Bordug List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Initialize the irq-table with PHY_POLL. '-1' means the same now, but is hardly maintainable. Signed-off-by: Wolfram Sang Cc: Vitaly Bordug Cc: Pantelis Antoniou Cc: Grant Likely Cc: netdev@vger.kernel.org Cc: linuxppc-dev@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