net: dsa: Move devlink registration to be last devlink command
authorLeon Romanovsky <leonro@nvidia.com>
Sat, 25 Sep 2021 11:23:01 +0000 (14:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2021 15:32:00 +0000 (16:32 +0100)
commitbd936bd53b2d9c326a2ba8e12438f57cd5b1fc8a
tree874e9ea592b56b68ca5344f95982449d5377302d
parent6f0b1edd9ff15b948ad03661954aebf35dc0bfa7
net: dsa: Move devlink registration to be last devlink command

This change prevents from users to access device before devlink
is fully configured.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa2.c