From: Florian Fainelli Date: Thu, 5 Dec 2013 22:52:10 +0000 (-0800) Subject: net: of_mdio: factor PHY registration from of_mdiobus_register X-Git-Tag: v3.14-rc1~94^2~595^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e79cb303010d5d2b7810c11bc5d1f09a8500405;p=pandora-kernel.git net: of_mdio: factor PHY registration from of_mdiobus_register Since commit 779d835e ("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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed