net: dnet: Use phy_find_first() helper
authorAndrew Lunn <andrew@lunn.ch>
Wed, 6 Jan 2016 19:11:11 +0000 (20:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Jan 2016 19:31:25 +0000 (14:31 -0500)
commit04521bf840482af30a6ed54835cefadcecdd56da
tree5941a47f26fff38a6b4b04937689b3e281e0cb22
parent84eff6d194df442bee62c129f2f47efb0dbd0468
net: dnet: Use phy_find_first() helper

Replace the open coded search for the first phy with a call to the
existing helper function.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dnet.c