phy: phy-core: use the np present in of_phandle_args to get the PHY
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 31 Oct 2014 08:34:20 +0000 (14:04 +0530)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 12 Nov 2014 13:10:13 +0000 (18:40 +0530)
commit491e049064a4ea69ba4b35bdf614f12bc762a717
treebdf4fb0cf3150f2e52da2aa0c1a521a9f9ecbede
parent28ba384dc5e42a23328dca7e5e72d19e2dd4c9ce
phy: phy-core: use the np present in of_phandle_args to get the PHY

Instead of using the node pointer of the PHY provider and then scanning its
child nodes to get a reference to the PHY, directly use the node pointer
present in of_phandle_args to get a reference to the PHY.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-core.c