summaryrefslogtreecommitdiff
path: root/sound/soc/sof/imx/imx8ulp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/sof/imx/imx8ulp.c')
-rw-r--r--sound/soc/sof/imx/imx8ulp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/sof/imx/imx8ulp.c b/sound/soc/sof/imx/imx8ulp.c
index 6965791ab6ef..0704da27e69d 100644
--- a/sound/soc/sof/imx/imx8ulp.c
+++ b/sound/soc/sof/imx/imx8ulp.c
@@ -155,8 +155,7 @@ static int imx8ulp_reset(struct snd_sof_dev *sdev)
static int imx8ulp_probe(struct snd_sof_dev *sdev)
{
- struct platform_device *pdev =
- container_of(sdev->dev, struct platform_device, dev);
+ struct platform_device *pdev = to_platform_device(sdev->dev);
struct device_node *np = pdev->dev.of_node;
struct device_node *res_node;
struct resource *mmio;