macb: straighten out macb_mii_probe function
authorJiri Pirko <jpirko@redhat.com>
Mon, 8 Feb 2010 05:12:08 +0000 (05:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Feb 2010 19:38:58 +0000 (11:38 -0800)
commit7455a76f170f794498d26081a5f15b797ef1a2aa
tree5a746de142377240d8cd0cbe7ac469ccab5171a2
parent4cd24eaf0c6ee7f0242e34ee77ec899f255e66b5
macb: straighten out macb_mii_probe function

Use "phy_find_first" instead of manual lookup. Also use "phy_connect_direct"
instead of "phy_connect" since we already have phy_device pointer here.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macb.c