[PATCH 1/9] Staging/iio/adc/touchscreen/MXS: add proper clock handling
Fabio Estevam
festevam at gmail.com
Tue Sep 24 09:50:00 EDT 2013
On Tue, Sep 24, 2013 at 4:50 AM, Jürgen Beisert <jbe at pengutronix.de> wrote:
> Hi Fabio,
>
> On Monday 23 September 2013 17:13:03 Fabio Estevam wrote:
>> On 09/23/2013 11:36 AM, Juergen Beisert wrote:
>> > + lradc->clk = devm_clk_get(&pdev->dev, NULL);
>> > + clk_prepare_enable(lradc->clk);
>>
>> clk_prepare_enable() may fail, so better check its return value.
>
> Thanks for the comment. Better this way?
Yes, looks better.
Thanks,
Fabio Estevam
More information about the linux-arm-kernel
mailing list