diff options
Diffstat (limited to 'arch/arm/common/timer-sp.c')
-rw-r--r-- | arch/arm/common/timer-sp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/common/timer-sp.c b/arch/arm/common/timer-sp.c index fd6bff0c5b96..19211324772f 100644 --- a/arch/arm/common/timer-sp.c +++ b/arch/arm/common/timer-sp.c | |||
@@ -233,13 +233,13 @@ static void __init sp804_of_init(struct device_node *np) | |||
233 | if (IS_ERR(clk1)) | 233 | if (IS_ERR(clk1)) |
234 | clk1 = NULL; | 234 | clk1 = NULL; |
235 | 235 | ||
236 | /* Get the 2nd clock if the timer has 2 timer clocks */ | 236 | /* Get the 2nd clock if the timer has 3 timer clocks */ |
237 | if (of_count_phandle_with_args(np, "clocks", "#clock-cells") == 3) { | 237 | if (of_count_phandle_with_args(np, "clocks", "#clock-cells") == 3) { |
238 | clk2 = of_clk_get(np, 1); | 238 | clk2 = of_clk_get(np, 1); |
239 | if (IS_ERR(clk2)) { | 239 | if (IS_ERR(clk2)) { |
240 | pr_err("sp804: %s clock not found: %d\n", np->name, | 240 | pr_err("sp804: %s clock not found: %d\n", np->name, |
241 | (int)PTR_ERR(clk2)); | 241 | (int)PTR_ERR(clk2)); |
242 | goto err; | 242 | clk2 = NULL; |
243 | } | 243 | } |
244 | } else | 244 | } else |
245 | clk2 = clk1; | 245 | clk2 = clk1; |