File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -573,17 +573,19 @@ static int cmdq_probe(struct platform_device *pdev)
573
573
cmdq -> clocks [alias_id ].id = clk_names [alias_id ];
574
574
cmdq -> clocks [alias_id ].clk = of_clk_get (node , 0 );
575
575
if (IS_ERR (cmdq -> clocks [alias_id ].clk )) {
576
- dev_err (dev , "failed to get gce clk: %d\n" , alias_id );
577
- return PTR_ERR (cmdq -> clocks [alias_id ].clk );
576
+ return dev_err_probe (dev ,
577
+ PTR_ERR (cmdq -> clocks [alias_id ].clk ),
578
+ "failed to get gce clk: %d\n" ,
579
+ alias_id );
578
580
}
579
581
}
580
582
}
581
583
} else {
582
584
cmdq -> clocks [alias_id ].id = clk_name ;
583
585
cmdq -> clocks [alias_id ].clk = devm_clk_get (& pdev -> dev , clk_name );
584
586
if (IS_ERR (cmdq -> clocks [alias_id ].clk )) {
585
- dev_err (dev , "failed to get gce clk\n" );
586
- return PTR_ERR ( cmdq -> clocks [ alias_id ]. clk );
587
+ return dev_err_probe (dev , PTR_ERR ( cmdq -> clocks [ alias_id ]. clk ),
588
+ "failed to get gce clk\n" );
587
589
}
588
590
}
589
591
You can’t perform that action at this time.
0 commit comments