File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -580,16 +580,14 @@ static int rockchip_sfc_probe(struct platform_device *pdev)
580
580
return PTR_ERR (sfc -> regbase );
581
581
582
582
sfc -> clk = devm_clk_get (& pdev -> dev , "clk_sfc" );
583
- if (IS_ERR (sfc -> clk )) {
584
- dev_err (& pdev -> dev , "Failed to get sfc interface clk\n" );
585
- return PTR_ERR (sfc -> clk );
586
- }
583
+ if (IS_ERR (sfc -> clk ))
584
+ return dev_err_probe (& pdev -> dev , PTR_ERR (sfc -> clk ),
585
+ "Failed to get sfc interface clk\n" );
587
586
588
587
sfc -> hclk = devm_clk_get (& pdev -> dev , "hclk_sfc" );
589
- if (IS_ERR (sfc -> hclk )) {
590
- dev_err (& pdev -> dev , "Failed to get sfc ahb clk\n" );
591
- return PTR_ERR (sfc -> hclk );
592
- }
588
+ if (IS_ERR (sfc -> hclk ))
589
+ return dev_err_probe (& pdev -> dev , PTR_ERR (sfc -> hclk ),
590
+ "Failed to get sfc ahb clk\n" );
593
591
594
592
sfc -> use_dma = !of_property_read_bool (sfc -> dev -> of_node , "rockchip,sfc-no-dma" );
595
593
You can’t perform that action at this time.
0 commit comments