Re: [alsa-devel] [PATCH V2] Sound: sgtl5000 Allow codec clock frequency to be set.
22 Mar
2013
22 Mar
'13
3:08 p.m.
On Fri, Mar 22, 2013 at 4:33 AM, Martin Fuzzey mfuzzey@parkeon.com wrote:
diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c index 424347e..71ce1f6 100644 --- a/sound/soc/fsl/imx-sgtl5000.c +++ b/sound/soc/fsl/imx-sgtl5000.c @@ -128,18 +128,30 @@ static int imx_sgtl5000_probe(struct platform_device *pdev) goto fail; }
ret = of_property_read_u32(codec_np, "clock-frequency",
&data->clk_frequency);
I just noticed that you assign 'ret' here, but you never check the value. So I think you should either:
1) Check the value of 'ret' 2) Remove the "ret = "
4293
Age (days ago)
4293
Last active (days ago)
0 comments
1 participants
participants (1)
-
Timur Tabi