net: dsa: Fix dsa_legacy_register() return value
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 29 Dec 2017 19:05:45 +0000 (11:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jan 2018 02:52:48 +0000 (21:52 -0500)
commit21602e1a5578925f610155a0bcf056d1ea9de964
treef3a4cbfccb0b5bee0f01930e1c81661605d734ee
parentf619b009009f5b9fb9ee82b93f789b66cb333e36
net: dsa: Fix dsa_legacy_register() return value

We need to make the dsa_legacy_register() stub return 0 in order for
dsa_init_module() to successfully register and continue registering the
ETH_P_XDSA packet handler.

Fixes: 2a93c1a3651f ("net: dsa: Allow compiling out legacy support")
Reported-by: Egil Hjelmeland <privat@egil-hjelmeland.no>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa_priv.h