[PATCH 14/17] i2c: nomadik: Fixup deployment of runtime PM

Ulf Hansson ulf.hansson at linaro.org
Mon Feb 10 05:16:53 EST 2014


On 5 February 2014 15:45, Fabio Estevam <festevam at gmail.com> wrote:
> On Tue, Feb 4, 2014 at 1:58 PM, Ulf Hansson <ulf.hansson at linaro.org> wrote:
>
>> +static int nmk_i2c_runtime_resume(struct device *dev)
>> +{
>> +       struct amba_device *adev = to_amba_device(dev);,
>> +       struct nmk_i2c_dev *nmk_i2c = amba_get_drvdata(adev);
>> +
>> +       clk_prepare_enable(nmk_i2c->clk);
>
> Previously the code was checking the return value from
> clk_prepare_enable(). You should keep the check here.

Will fix in v2! Thanks for reviewing!

Kind regards
Ulf Hansson

>
> Regards,
>
> Fabio Estevam



More information about the linux-arm-kernel mailing list