From: Andrew Lunn Date: Mon, 9 Feb 2015 01:29:55 +0000 (+0100) Subject: net: dsa: Remove redundant phy_attach() X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~3^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b750f5b4273316b4bb4d0a4a474c1eeaf0833648;p=pandora-kernel.git net: dsa: Remove redundant phy_attach() dsa_slave_phy_setup() finds the phy for the port via device tree and using of_phy_connect(), or it uses the fall back of taking a phy from the switch internal mdio bus and calling phy_connect_direct(). Either way, if a phy is found, phy_attach_direct() is called to attach the phy to the slave device. In dsa_slave_create(), a second call to phy_attach() is made. This results in the warning "PHY already attached". Remove this second, redundant attaching of the phy. Signed-off-by: Andrew Lunn Acked-by: Florian Fainelli Tested-by: Florian Fainelli Signed-off-by: David S. Miller --- Reading git-diff-tree failed