File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -534,15 +534,11 @@ static const struct rproc_ops adsp_ops = {
534
534
static int adsp_init_clock (struct qcom_adsp * adsp , const char * * clk_ids )
535
535
{
536
536
int num_clks = 0 ;
537
- int i , ret ;
537
+ int i ;
538
538
539
539
adsp -> xo = devm_clk_get (adsp -> dev , "xo" );
540
- if (IS_ERR (adsp -> xo )) {
541
- ret = PTR_ERR (adsp -> xo );
542
- if (ret != - EPROBE_DEFER )
543
- dev_err (adsp -> dev , "failed to get xo clock" );
544
- return ret ;
545
- }
540
+ if (IS_ERR (adsp -> xo ))
541
+ return dev_err_probe (adsp -> dev , PTR_ERR (adsp -> xo ), "failed to get xo clock" );
546
542
547
543
for (i = 0 ; clk_ids [i ]; i ++ )
548
544
num_clks ++ ;
@@ -708,10 +704,9 @@ static int adsp_probe(struct platform_device *pdev)
708
704
return ret ;
709
705
710
706
ret = qcom_rproc_pds_attach (adsp , desc -> pd_names , desc -> num_pds );
711
- if (ret < 0 ) {
712
- dev_err (& pdev -> dev , "Failed to attach proxy power domains\n" );
713
- return ret ;
714
- }
707
+ if (ret < 0 )
708
+ return dev_err_probe (& pdev -> dev , ret ,
709
+ "Failed to attach proxy power domains\n" );
715
710
716
711
ret = adsp_init_reset (adsp );
717
712
if (ret )
You can’t perform that action at this time.
0 commit comments