Skip to content

Commit 2634f74

Browse files
dbalutabroonie
authored andcommitted
ASoC: SOF: imx8m: Fix DSP control regmap retrieval
According to Documentation/devicetree/bindings/dsp/fsl,dsp.yaml fsl,dsp-ctrl is a phandle to syscon block so we need to use correct function to retrieve it. Currently there is no SOF DSP DTS merged into mainline so there is no need to support the old way of retrieving the dsp control node. Fixes: 9ba2371 ("ASoC: SOF: imx8m: Implement DSP start") Signed-off-by: Daniel Baluta <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent c51cba4 commit 2634f74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/sof/imx/imx8m.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static int imx8m_probe(struct snd_sof_dev *sdev)
234234
/* set default mailbox offset for FW ready message */
235235
sdev->dsp_box.offset = MBOX_OFFSET;
236236

237-
priv->regmap = syscon_regmap_lookup_by_compatible("fsl,dsp-ctrl");
237+
priv->regmap = syscon_regmap_lookup_by_phandle(np, "fsl,dsp-ctrl");
238238
if (IS_ERR(priv->regmap)) {
239239
dev_err(sdev->dev, "cannot find dsp-ctrl registers");
240240
ret = PTR_ERR(priv->regmap);

0 commit comments

Comments
 (0)