File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -448,18 +448,14 @@ static int clk_wzrd_probe(struct platform_device *pdev)
448
448
}
449
449
450
450
clk_wzrd -> clk_in1 = devm_clk_get (& pdev -> dev , "clk_in1" );
451
- if (IS_ERR (clk_wzrd -> clk_in1 )) {
452
- if (clk_wzrd -> clk_in1 != ERR_PTR (- EPROBE_DEFER ))
453
- dev_err (& pdev -> dev , "clk_in1 not found\n" );
454
- return PTR_ERR (clk_wzrd -> clk_in1 );
455
- }
451
+ if (IS_ERR (clk_wzrd -> clk_in1 ))
452
+ return dev_err_probe (& pdev -> dev , PTR_ERR (clk_wzrd -> clk_in1 ),
453
+ "clk_in1 not found\n" );
456
454
457
455
clk_wzrd -> axi_clk = devm_clk_get (& pdev -> dev , "s_axi_aclk" );
458
- if (IS_ERR (clk_wzrd -> axi_clk )) {
459
- if (clk_wzrd -> axi_clk != ERR_PTR (- EPROBE_DEFER ))
460
- dev_err (& pdev -> dev , "s_axi_aclk not found\n" );
461
- return PTR_ERR (clk_wzrd -> axi_clk );
462
- }
456
+ if (IS_ERR (clk_wzrd -> axi_clk ))
457
+ return dev_err_probe (& pdev -> dev , PTR_ERR (clk_wzrd -> axi_clk ),
458
+ "s_axi_aclk not found\n" );
463
459
ret = clk_prepare_enable (clk_wzrd -> axi_clk );
464
460
if (ret ) {
465
461
dev_err (& pdev -> dev , "enabling s_axi_aclk failed\n" );
You can’t perform that action at this time.
0 commit comments