net: dsa: propagate error code from dsa_slave_phy_setup
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 11 Dec 2014 20:49:16 +0000 (12:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Dec 2014 02:00:08 +0000 (21:00 -0500)
In case we cannot attach to our slave netdevice PHY, error out and
propagate that error up to the caller: dsa_slave_create().

Fixes: 0d8bcdd383b8 ("net: dsa: allow for more complex PHY setups")
Signed-off-by: Andrey Volkov <andrey.volkov@nexvision.fr>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c

diff --cc net/dsa/slave.c
Simple merge