Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67bd489a authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

ASoC: Add missing dev_set_drvdata in mpc8610_hpcd_probe



Otherwise, calling dev_get_drvdata in mpc8610_hpcd_remove returns NULL.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarTimur Tabi <timur@freescale.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 3f90e502
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -498,6 +498,7 @@ static int mpc8610_hpcd_probe(struct platform_device *pdev)
		dev_err(&pdev->dev, "platform device add failed\n");
		dev_err(&pdev->dev, "platform device add failed\n");
		goto error;
		goto error;
	}
	}
	dev_set_drvdata(&pdev->dev, sound_device);


	of_node_put(codec_np);
	of_node_put(codec_np);