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
- References:
- [PATCH 0/5] ARM: atmel: switch audio to CCF
- From: Bo Shen
- [PATCH 2/5] ASoC: wm8904: switch to CCF
- From: Bo Shen
- [PATCH 0/5] ARM: atmel: switch audio to CCF
- Prev by Date: Re: [PATCH 4/5] ARM: atmel: sama5d3xek: switch sound to CCF
- Next by Date: [PATCH v2 0/5] As the sama5d3xek and at91sam9n12ek have switch to CCF,
- Previous by thread: [PATCH 2/5] ASoC: wm8904: switch to CCF
- Next by thread: [PATCH 3/5] dt: wm8904: add device tree binding document
- Index(es):