lkml.org 
[lkml]   [2016]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [alsa-devel] [PATCH v2 5/9] ASoC: mediatek: add structure define and clock control for 2701
On Fri, Jun 03, 2016 at 12:56:20PM +0800, Garlic Tseng wrote:

> +void mt2701_init_clock(struct mtk_base_afe *afe)
> +{
> + struct mt2701_afe_private *afe_priv = afe->platform_priv;
> + int i = 0;
> +
> + for (i = 0; i < MT2701_CLOCK_NUM; i++) {
> + afe_priv->clocks[i] = devm_clk_get(afe->dev, aud_clks[i]);
> + if (IS_ERR(aud_clks[i]))
> + dev_warn(afe->dev, "%s devm_clk_get %s fail\n",
> + __func__, aud_clks[i]);
> + }
> +}

This looks like we just ignore the error but I'm not seeing anything
that stops us trying to use the clocks or handle deferred probe?
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2016-06-07 18:41    [W:0.113 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site