diff options
author | Shay Drory <shayd@nvidia.com> | 2024-04-11 14:54:41 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-04-13 05:13:53 +0300 |
commit | bf729988303a27833a86acb561f42b9a3cc12728 (patch) | |
tree | ea92a8fcfb6431ab590651f844586ccbb92e390c /drivers/net/ethernet/mellanox/mlx5/core/sf/dev/driver.c | |
parent | aa4ac90d04f4371466000825adb44935ecb5c974 (diff) | |
download | linux-bf729988303a27833a86acb561f42b9a3cc12728.tar.xz |
net/mlx5: Restore mistakenly dropped parts in register devlink flow
Code parts from cited commit were mistakenly dropped while rebasing
before submission. Add them here.
Fixes: c6e77aa9dd82 ("net/mlx5: Register devlink first under devlink lock")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/20240411115444.374475-4-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/sf/dev/driver.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/sf/dev/driver.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/driver.c b/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/driver.c index e3bf8c7e4baa..7ebe71280827 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/driver.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/driver.c @@ -75,7 +75,6 @@ static int mlx5_sf_dev_probe(struct auxiliary_device *adev, const struct auxilia goto peer_devlink_set_err; } - devlink_register(devlink); return 0; peer_devlink_set_err: |