]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: phy: micrel_ksz90x1: switch to use ofnode apis
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Sat, 16 Mar 2019 12:21:23 +0000 (17:51 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Sat, 16 Mar 2019 13:02:37 +0000 (14:02 +0100)
commitb351de58a9fe146ae890655da06e8f22debde397
treed97477a8550209dedaf43d62f2d1a9127f591fa6
parent602f217c499332778babc87af7e93b1c26059cee
net: phy: micrel_ksz90x1: switch to use ofnode apis

phydev->node is phy node, phydev->dev->node is controller
and that current code is likely reading the properties from
controller node and not from phy. So, Use PHY API phy_get_ofnode()
helper to get PHY DT node and use ofnode_read_u32_default() to
read properties in phy node.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Changes for v2:
- Updated description
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/phy/micrel_ksz90x1.c