summaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2015-02-09 02:29:55 +0100
committerDavid S. Miller <davem@davemloft.net>2015-02-09 14:05:42 -0800
commitb750f5b4273316b4bb4d0a4a474c1eeaf0833648 (patch)
treefb9fde7519561288a42f1bc253710e2525070422 /net/bridge
parenta4870f79c228d109c1e51df4a899394515271604 (diff)
downloadlinux-stable-b750f5b4273316b4bb4d0a4a474c1eeaf0833648.tar.gz
linux-stable-b750f5b4273316b4bb4d0a4a474c1eeaf0833648.tar.bz2
linux-stable-b750f5b4273316b4bb4d0a4a474c1eeaf0833648.zip
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 <andrew@lunn.ch> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Tested-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
0 files changed, 0 insertions, 0 deletions