clocksource/drivers/atmel-pit: Fix compilation error
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 29 Aug 2016 06:44:03 +0000 (08:44 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 29 Aug 2016 07:51:39 +0000 (09:51 +0200)
commit98744b408c757901df57fa50cbd5826245dc3a1f
treefa20bbe068651a779e0abb7177dc9191661a2d18
parent3eab887a55424fc2c27553b7bfe32330df83f7b8
clocksource/drivers/atmel-pit: Fix compilation error

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'.

Fixes: 504f34c9e45c "clocksource/drivers/atmel-pit: Convert init function to return error"
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: alexandre.belloni@free-electrons.com
Cc: motobud@gmail.com
Cc: realbright@lgcns.com
Link: http://lkml.kernel.org/r/1472453043-24287-1-git-send-email-daniel.lezcano@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/clocksource/timer-atmel-pit.c
This page took 0.02529 seconds and 5 git commands to generate.