net: stmmac: set phy to use polling by default
authorDinh Nguyen <dinguyen@altera.com>
Tue, 29 Apr 2014 17:56:21 +0000 (12:56 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Apr 2014 17:31:26 +0000 (13:31 -0400)
commitcc80ee13609dc5926ad563d1a793991c80675e65
treef89bf1b6f253276dfb7e1df3695b7b771f9142c2
parent6ebbc1a6383fe78be3c0961d1475043ac6cc2542
net: stmmac: set phy to use polling by default

mii_irq[] array is never initialized anywhere in the driver, thus mii_irq[]
will always equate to zero. So, for the case where the PHY does not have an
irq, we should use PHY_POLL for that situation.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
Tested-by: Vince Bridgers <vbridger@altera.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c