[PATCH] at91ether: return PTR_ERR if call to clk_get fails
David Miller
davem at davemloft.net
Thu Sep 20 22:22:21 EDT 2012
From: Nicolas Ferre <nicolas.ferre at atmel.com>
Date: Thu, 20 Sep 2012 09:42:14 +0200
> On 09/20/2012 09:04 AM, Devendra Naga :
>> we are currently returning ENODEV, as the clk_get may give a exact
>> error code in its returned pointer, assign it to the ret by using the
>> PTR_ERR function, so that the subsequent goto label will jump to the
>> error path and clean the driver and return the error correctly.
>>
>> Signed-off-by: Devendra Naga <devendra.aaru at gmail.com>
>
> Acked-by: Nicolas Ferre <nicolas.ferre at atmel.com>
Applied, thanks.
More information about the linux-arm-kernel
mailing list