net: dsa: loop: Print when registration is successful
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 8 Jul 2020 04:45:13 +0000 (21:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2020 17:14:00 +0000 (10:14 -0700)
commit93165ecbe1d0298bdaa9ddc4b4e4ff01831dc6c9
treee4af8b57dbf761e61c6ae6a7ca640daa08485bf2
parent8cb601f15886f6d05479e46913d954e9ff237312
net: dsa: loop: Print when registration is successful

We have a number of error conditions that can lead to the driver not
probing successfully, move the print when we are sure
dsa_register_switch() has suceeded. This avoids repeated prints in case
of probe deferral for instance.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/dsa_loop.c