clocksource/drivers/mips-gic-timer: Fix an error code in 'gic_clocksource_of_init()'
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Fri, 23 Jun 2017 19:55:10 +0000 (21:55 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 27 Jun 2017 09:25:40 +0000 (11:25 +0200)
commit8c3ecd60e2ee6268e1735952e5b544f05b4dbb5a
treeeb5ce868accdb73fe1e768c1ccadb90e9895ab18
parentb70957f656cc070eaaac60b00dca5b40967cb8d6
clocksource/drivers/mips-gic-timer: Fix an error code in 'gic_clocksource_of_init()'

'clk' is a valid pointer at this point. So calling PTR_ERR on it is
pointess.

Return the error code from 'clk_prepare_enable()' if it fails instead.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/mips-gic-timer.c