]> git.baikalelectronics.ru Git - kernel.git/commit
net: davinci_emac: Fix incomplete code for getting the phy from device tree
authorTony Lindgren <tony@atomide.com>
Thu, 15 Jan 2015 22:45:12 +0000 (14:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jan 2015 06:00:03 +0000 (01:00 -0500)
commit669ea435f921a5e966e138f3b78d6daffd696784
tree49ea18203e994fd765008b408c4099538f7fc9f5
parenteb8fd308dbfcdf2c789d5e1d6887e11e15318757
net: davinci_emac: Fix incomplete code for getting the phy from device tree

Looks like the phy_id is never set up beyond getting the phandle.
Note that we can remove the ifdef for phy_node as there is a stub
for of_phy_connec() if CONFIG_OF is not set.

Cc: Brian Hutchinson <b.hutchman@gmail.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_emac.c