ASoC: imx-audmix: register the card on a proper dev
authorShengjiu Wang <shengjiu.wang@nxp.com>
Tue, 27 Aug 2019 15:55:15 +0000 (11:55 -0400)
committerMark Brown <broonie@kernel.org>
Tue, 27 Aug 2019 10:44:39 +0000 (11:44 +0100)
commit9573820eb1951e0cb0f329886abcb4153f2ea798
tree00ff8607e4a0237161245e6e72ab5bea2644bd72
parentb9a4805a4ac1200326ee0c78df0ae3faceabad49
ASoC: imx-audmix: register the card on a proper dev

This platform device is registered from "fsl_audmix", which is
its parent device. If use pdev->dev.parent for the priv->card.dev,
the value set by dev_set_drvdata in parent device will be covered
by the value in child device.

Fixes: b86ef5367761 ("ASoC: fsl: Add Audio Mixer machine driver")
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/1566921315-23402-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/imx-audmix.c