Skip to content

Commit 45e3a27

Browse files
debox1gregkh
authored andcommitted
vdpa/mlx5: Use auxiliary_device driver data helpers
Use auxiliary_get_drvdata and auxiliary_set_drvdata helpers. Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Signed-off-by: David E. Box <david.e.box@linux.intel.com> Link: https://lore.kernel.org/r/20211221235852.323752-5-david.e.box@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a5f8ef0 commit 45e3a27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/vdpa/mlx5/net/mlx5_vnet.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2683,7 +2683,7 @@ static int mlx5v_probe(struct auxiliary_device *adev,
26832683
if (err)
26842684
goto reg_err;
26852685

2686-
dev_set_drvdata(&adev->dev, mgtdev);
2686+
auxiliary_set_drvdata(adev, mgtdev);
26872687

26882688
return 0;
26892689

@@ -2696,7 +2696,7 @@ static void mlx5v_remove(struct auxiliary_device *adev)
26962696
{
26972697
struct mlx5_vdpa_mgmtdev *mgtdev;
26982698

2699-
mgtdev = dev_get_drvdata(&adev->dev);
2699+
mgtdev = auxiliary_get_drvdata(adev);
27002700
vdpa_mgmtdev_unregister(&mgtdev->mgtdev);
27012701
kfree(mgtdev);
27022702
}

0 commit comments

Comments
 (0)