Skip to content
Commit 8c3ecd60 authored by Christophe Jaillet's avatar Christophe Jaillet Committed by Daniel Lezcano
Browse files

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent b70957f6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment