File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -268,15 +268,12 @@ static int __init mtk_syst_init(struct device_node *node)
268
268
269
269
ret = timer_of_init (node , & to );
270
270
if (ret )
271
- goto err ;
271
+ return ret ;
272
272
273
273
clockevents_config_and_register (& to .clkevt , timer_of_rate (& to ),
274
274
TIMER_SYNC_TICKS , 0xffffffff );
275
275
276
276
return 0 ;
277
- err :
278
- timer_of_cleanup (& to );
279
- return ret ;
280
277
}
281
278
282
279
static int __init mtk_gpt_init (struct device_node * node )
@@ -293,7 +290,7 @@ static int __init mtk_gpt_init(struct device_node *node)
293
290
294
291
ret = timer_of_init (node , & to );
295
292
if (ret )
296
- goto err ;
293
+ return ret ;
297
294
298
295
/* Configure clock source */
299
296
mtk_gpt_setup (& to , TIMER_CLK_SRC , GPT_CTRL_OP_FREERUN );
@@ -311,9 +308,6 @@ static int __init mtk_gpt_init(struct device_node *node)
311
308
mtk_gpt_enable_irq (& to , TIMER_CLK_EVT );
312
309
313
310
return 0 ;
314
- err :
315
- timer_of_cleanup (& to );
316
- return ret ;
317
311
}
318
312
TIMER_OF_DECLARE (mtk_mt6577 , "mediatek,mt6577-timer" , mtk_gpt_init );
319
313
TIMER_OF_DECLARE (mtk_mt6765 , "mediatek,mt6765-timer" , mtk_syst_init );
You can’t perform that action at this time.
0 commit comments