]> git.baikalelectronics.ru Git - kernel.git/commit
net: of_mdio: factor PHY registration from of_mdiobus_register
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 5 Dec 2013 22:52:10 +0000 (14:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Dec 2013 19:57:20 +0000 (14:57 -0500)
commit65475a158e0c1a5137cf9416990c12d193af9b3c
treea9b60e33e1b7a90512fbf6eff3a663309827193c
parent46662e749ad229f8a9d99cb1d6a8ff0ff172729c
net: of_mdio: factor PHY registration from of_mdiobus_register

Since commit 9f806a15 ("net: of_mdio: scan mdiobus for PHYs without reg
property") we have two foreach loops which do pretty much the same
thing. Factor the PHY device registration in a function helper:
of_mdiobus_register_phy() which takes care of the details and allows for
future PHY specific extensions.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/of/of_mdio.c