File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
drivers/platform/x86/intel/pmc Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -403,18 +403,16 @@ static int pmc_core_mphy_pg_show(struct seq_file *s, void *unused)
403
403
404
404
mutex_lock (& pmcdev -> lock );
405
405
406
- if ( pmc_core_send_msg (pmc , & mphy_core_reg_low ) != 0 ) {
407
- err = - EBUSY ;
406
+ err = pmc_core_send_msg (pmc , & mphy_core_reg_low );
407
+ if ( err )
408
408
goto out_unlock ;
409
- }
410
409
411
410
msleep (10 );
412
411
val_low = pmc_core_reg_read (pmc , SPT_PMC_MFPMC_OFFSET );
413
412
414
- if ( pmc_core_send_msg (pmc , & mphy_core_reg_high ) != 0 ) {
415
- err = - EBUSY ;
413
+ err = pmc_core_send_msg (pmc , & mphy_core_reg_high );
414
+ if ( err )
416
415
goto out_unlock ;
417
- }
418
416
419
417
msleep (10 );
420
418
val_high = pmc_core_reg_read (pmc , SPT_PMC_MFPMC_OFFSET );
@@ -455,10 +453,9 @@ static int pmc_core_pll_show(struct seq_file *s, void *unused)
455
453
mphy_common_reg = (SPT_PMC_MPHY_COM_STS_0 << 16 );
456
454
mutex_lock (& pmcdev -> lock );
457
455
458
- if ( pmc_core_send_msg (pmc , & mphy_common_reg ) != 0 ) {
459
- err = - EBUSY ;
456
+ err = pmc_core_send_msg (pmc , & mphy_common_reg );
457
+ if ( err )
460
458
goto out_unlock ;
461
- }
462
459
463
460
/* Observed PMC HW response latency for MTPMC-MFPMC is ~10 ms */
464
461
msleep (10 );
You can’t perform that action at this time.
0 commit comments