Re: [PATCH] clocksource/drivers/atmel-pit: Fix compilation error

From: Daniel Lezcano
Date: Mon Aug 29 2016 - 02:53:57 EST


On 08/29/2016 08:44 AM, Daniel Lezcano wrote:
> The previous fix introduced a check against the ret variable which
> is not defined, hence producing a compilation error:
>
> linux/drivers/clocksource/timer-atmel-pit.c: In function âat91sam926x_pit_dt_initâ:
> linux/drivers/clocksource/timer-atmel-pit.c:264:2: error: âretâ undeclared (first use in this function)
> ret = clk_prepare_enable(data->mck);
> ^
> linux/drivers/clocksource/timer-atmel-pit.c:264:2: note: each undeclared identifier is reported only once for each function it appears in
>
> Add the missing the variable 'ret'.
>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
> ---

Thomas,

do you mind to directly apply this patch ?

Thanks

-- Daniel

--
<http://www.linaro.org/> Linaro.org â Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog