diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-06-30 14:18:53 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-07-11 23:48:34 +0100 |
commit | 3666a8f820075e99539ab50687e80fadf997822f (patch) | |
tree | e6e381a2385e72c9727157735d217bb92b2b282b /sound/soc/ti | |
parent | 55233b22502151e0b2d9cc599e1ddf1f5584c87a (diff) |
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: 8fe120b5a665 ("ASoC: omap-abe-twl6040: Remove support for pdata (legacy boot)")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/YNxTHXz58dhgbFtG@mwanda
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/ti')
-rw-r--r-- | sound/soc/ti/omap-abe-twl6040.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sound/soc/ti/omap-abe-twl6040.c b/sound/soc/ti/omap-abe-twl6040.c index 91cc9a4f44d7..2e3d1eea77c1 100644 --- a/sound/soc/ti/omap-abe-twl6040.c +++ b/sound/soc/ti/omap-abe-twl6040.c @@ -292,11 +292,6 @@ static int omap_abe_probe(struct platform_device *pdev) 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->num_links = num_links; |