]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit301856461d2a2616911f55c3277cac1c951c3844
treee4af8b57dbf761e61c6ae6a7ca640daa08485bf2
parent45f4bd22e181a948e5bf08342562aa6ac563e2ba
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