bnxt_en: Register devlink instance at the end devlink configuration
authorLeon Romanovsky <leonro@nvidia.com>
Sat, 25 Sep 2021 11:22:42 +0000 (14:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2021 15:31:58 +0000 (16:31 +0100)
commit5df290e7a70367d476406420d19c4dea14d45dd1
tree091b1ff8a6f406b95934e39f10fdd1922151b9fe
parentcf530217408e3686f7002429769ede59dd931151
bnxt_en: Register devlink instance at the end devlink configuration

Move devlink_register() to be last command in devlink configuration
sequence, so no user space access will be possible till devlink instance
is fully operable. As part of this change, the devlink_params_publish
call is removed as not needed.

This change fixes forgotten devlink_params_unpublish() too.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c