Skip to content

Commit 9069141

Browse files
Sakari Ailusbroonie
authored andcommitted
ASoC: atmel: Remove redundant pm_runtime_mark_last_busy() calls
pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent cd4da71 commit 9069141

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

sound/soc/atmel/mchp-spdifrx.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,6 @@ static int mchp_spdifrx_cs_get(struct mchp_spdifrx_dev *dev,
577577
sizeof(ch_stat->data));
578578

579579
pm_runtime_put:
580-
pm_runtime_mark_last_busy(dev->dev);
581580
pm_runtime_put_autosuspend(dev->dev);
582581
unlock:
583582
mutex_unlock(&dev->mlock);
@@ -660,7 +659,6 @@ static int mchp_spdifrx_subcode_ch_get(struct mchp_spdifrx_dev *dev,
660659
sizeof(user_data->data));
661660

662661
pm_runtime_put:
663-
pm_runtime_mark_last_busy(dev->dev);
664662
pm_runtime_put_autosuspend(dev->dev);
665663
unlock:
666664
mutex_unlock(&dev->mlock);
@@ -726,7 +724,6 @@ static int mchp_spdifrx_ulock_get(struct snd_kcontrol *kcontrol,
726724

727725
uvalue->value.integer.value[0] = ctrl->ulock;
728726

729-
pm_runtime_mark_last_busy(dev->dev);
730727
pm_runtime_put_autosuspend(dev->dev);
731728
unlock:
732729
mutex_unlock(&dev->mlock);
@@ -762,7 +759,6 @@ static int mchp_spdifrx_badf_get(struct snd_kcontrol *kcontrol,
762759
ctrl->badf = 0;
763760
}
764761

765-
pm_runtime_mark_last_busy(dev->dev);
766762
pm_runtime_put_autosuspend(dev->dev);
767763
unlock:
768764
mutex_unlock(&dev->mlock);
@@ -811,7 +807,6 @@ static int mchp_spdifrx_signal_get(struct snd_kcontrol *kcontrol,
811807
regmap_read(dev->regmap, SPDIFRX_RSR, &val);
812808
}
813809

814-
pm_runtime_mark_last_busy(dev->dev);
815810
pm_runtime_put_autosuspend(dev->dev);
816811

817812
unlock:
@@ -875,7 +870,6 @@ static int mchp_spdifrx_rate_get(struct snd_kcontrol *kcontrol,
875870
ucontrol->value.integer.value[0] = rate / (32 * SPDIFRX_RSR_IFS(val));
876871

877872
pm_runtime_put:
878-
pm_runtime_mark_last_busy(dev->dev);
879873
pm_runtime_put_autosuspend(dev->dev);
880874
unlock:
881875
mutex_unlock(&dev->mlock);

0 commit comments

Comments
 (0)