File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,7 @@ static int __init msm_dt_timer_init(struct device_node *np)
233
233
}
234
234
235
235
if (of_property_read_u32 (np , "clock-frequency" , & freq )) {
236
+ iounmap (cpu0_base );
236
237
pr_err ("Unknown frequency\n" );
237
238
return - EINVAL ;
238
239
}
@@ -243,7 +244,11 @@ static int __init msm_dt_timer_init(struct device_node *np)
243
244
freq /= 4 ;
244
245
writel_relaxed (DGT_CLK_CTL_DIV_4 , source_base + DGT_CLK_CTL );
245
246
246
- return msm_timer_init (freq , 32 , irq , !!percpu_offset );
247
+ ret = msm_timer_init (freq , 32 , irq , !!percpu_offset );
248
+ if (ret )
249
+ iounmap (cpu0_base );
250
+
251
+ return ret ;
247
252
}
248
253
TIMER_OF_DECLARE (kpss_timer , "qcom,kpss-timer" , msm_dt_timer_init );
249
254
TIMER_OF_DECLARE (scss_timer , "qcom,scss-timer" , msm_dt_timer_init );
You can’t perform that action at this time.
0 commit comments