Commit 3666a8f8 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown

ASoC: ti: delete some dead code in omap_abe_probe()

This code checks "priv->mclk_freq" twice and the second check is not
required.  The code is left over from when removed support for legacy
boot.

Fixes: 8fe120b5 ("ASoC: omap-abe-twl6040: Remove support for pdata (legacy boot)")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/YNxTHXz58dhgbFtG@mwandaSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 55233b22
...@@ -292,11 +292,6 @@ static int omap_abe_probe(struct platform_device *pdev) ...@@ -292,11 +292,6 @@ static int omap_abe_probe(struct platform_device *pdev)
card->fully_routed = 1; card->fully_routed = 1;
if (!priv->mclk_freq) {
dev_err(&pdev->dev, "MCLK frequency missing\n");
return -ENODEV;
}
card->dai_link = priv->dai_links; card->dai_link = priv->dai_links;
card->num_links = num_links; card->num_links = num_links;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment