On Thu, Jun 05, 2014 at 06:19:29PM +0800, Bo Shen wrote:

> +             if (wm8904->mclk)
> +                     clk_prepare_enable(wm8904->mclk);

There's no point in having checks for MCLK here since...

> +     wm8904->mclk = devm_clk_get(&i2c->dev, "mclk");
> +     if (IS_ERR(wm8904->mclk)) {
> +             ret = PTR_ERR(wm8904->mclk);
> +             dev_err(&i2c->dev, "Failed to get MCLK\n");
> +             return ret;
> +     }

...we require a clock here.

Attachment: signature.asc
Description: Digital signature

Reply via email to