Commit a5f8ef0b authored by David E. Box's avatar David E. Box Committed by Greg Kroah-Hartman
Browse files

net/mlx5e: Use auxiliary_device driver data helpers

parent 3edac08e
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -5389,7 +5389,7 @@ void mlx5e_destroy_netdev(struct mlx5e_priv *priv)
static int mlx5e_resume(struct auxiliary_device *adev)
{
	struct mlx5_adev *edev = container_of(adev, struct mlx5_adev, adev);
	struct mlx5e_priv *priv = dev_get_drvdata(&adev->dev);
	struct mlx5e_priv *priv = auxiliary_get_drvdata(adev);
	struct net_device *netdev = priv->netdev;
	struct mlx5_core_dev *mdev = edev->mdev;
	int err;
@@ -5412,7 +5412,7 @@ static int mlx5e_resume(struct auxiliary_device *adev)

static int mlx5e_suspend(struct auxiliary_device *adev, pm_message_t state)
{
	struct mlx5e_priv *priv = dev_get_drvdata(&adev->dev);
	struct mlx5e_priv *priv = auxiliary_get_drvdata(adev);
	struct net_device *netdev = priv->netdev;
	struct mlx5_core_dev *mdev = priv->mdev;

@@ -5456,7 +5456,7 @@ static int mlx5e_probe(struct auxiliary_device *adev,
	mlx5e_build_nic_netdev(netdev);

	priv = netdev_priv(netdev);
	dev_set_drvdata(&adev->dev, priv);
	auxiliary_set_drvdata(adev, priv);

	priv->profile = profile;
	priv->ppriv = NULL;
@@ -5504,7 +5504,7 @@ static int mlx5e_probe(struct auxiliary_device *adev,

static void mlx5e_remove(struct auxiliary_device *adev)
{
	struct mlx5e_priv *priv = dev_get_drvdata(&adev->dev);
	struct mlx5e_priv *priv = auxiliary_get_drvdata(adev);
	pm_message_t state = {};

	mlx5e_dcbnl_delete_app(priv);