Skip to content

Commit

Permalink
From patchwork series 377332
Browse files Browse the repository at this point in the history
  • Loading branch information
Fox Snowpatch committed Oct 12, 2023
1 parent b8b05bc commit ec08dfe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sound/soc/fsl/fsl_easrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1966,17 +1966,21 @@ static int fsl_easrc_probe(struct platform_device *pdev)
&fsl_easrc_dai, 1);
if (ret) {
dev_err(dev, "failed to register ASoC DAI\n");
return ret;
goto err_pm_disable;
}

ret = devm_snd_soc_register_component(dev, &fsl_asrc_component,
NULL, 0);
if (ret) {
dev_err(&pdev->dev, "failed to register ASoC platform\n");
return ret;
goto err_pm_disable;
}

return 0;

err_pm_disable:
pm_runtime_disable(&pdev->dev);
return ret;
}

static void fsl_easrc_remove(struct platform_device *pdev)
Expand Down

0 comments on commit ec08dfe

Please sign in to comment.