net: dsa: exit probe if no switch were found
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 6 Oct 2015 14:40:43 +0000 (15:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Oct 2015 11:56:11 +0000 (04:56 -0700)
commit4d7f3e757c15051b4521a59791de87ce748c0eb2
tree67a4fbcc4982a51fc30f692750cb98e3328dac1b
parentd4ac35d6ed82e6c96ed5c016ea46fad31294fa7a
net: dsa: exit probe if no switch were found

If no switch were found in dsa_setup_dst, return -ENODEV and
exit the dsa_probe cleanly.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c