ASoC: ti: omap-mcbsp: Ignore errors for getting fck_src

Commit 349355ce3a ("ARM: OMAP2+: Drop legacy platform data for omap4 mcbsp")
dropped prcm_fck for omap4, so the clk_src might not be available making the
clk_get(src) fail. In such cases, rely on the devicetree to assign
the correct parent.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Link: https://lore.kernel.org/r/20230705190324.355282-2-andreas@kemnade.info
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Andreas Kemnade 2023-07-05 21:03:22 +02:00 committed by Mark Brown
parent 30019d220c
commit 82e7c8b93a
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -70,8 +70,8 @@ static int omap2_mcbsp_set_clks_src(struct omap_mcbsp *mcbsp, u8 fck_src_id)
fck_src = clk_get(mcbsp->dev, src);
if (IS_ERR(fck_src)) {
dev_err(mcbsp->dev, "CLKS: could not clk_get() %s\n", src);
return -EINVAL;
dev_info(mcbsp->dev, "CLKS: could not clk_get() %s\n", src);
return 0;
}
pm_runtime_put_sync(mcbsp->dev);