Skip to content

Commit c61e94e

Browse files
Sakari Ailusbroonie
authored andcommitted
regulator: stm32-vrefbuf: 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 c61e94e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/regulator/stm32-vrefbuf.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ static int stm32_vrefbuf_enable(struct regulator_dev *rdev)
6767
writel_relaxed(val, priv->base + STM32_VREFBUF_CSR);
6868
}
6969

70-
pm_runtime_mark_last_busy(priv->dev);
7170
pm_runtime_put_autosuspend(priv->dev);
7271

7372
return ret;
@@ -87,7 +86,6 @@ static int stm32_vrefbuf_disable(struct regulator_dev *rdev)
8786
val &= ~STM32_ENVR;
8887
writel_relaxed(val, priv->base + STM32_VREFBUF_CSR);
8988

90-
pm_runtime_mark_last_busy(priv->dev);
9189
pm_runtime_put_autosuspend(priv->dev);
9290

9391
return 0;
@@ -104,7 +102,6 @@ static int stm32_vrefbuf_is_enabled(struct regulator_dev *rdev)
104102

105103
ret = readl_relaxed(priv->base + STM32_VREFBUF_CSR) & STM32_ENVR;
106104

107-
pm_runtime_mark_last_busy(priv->dev);
108105
pm_runtime_put_autosuspend(priv->dev);
109106

110107
return ret;
@@ -125,7 +122,6 @@ static int stm32_vrefbuf_set_voltage_sel(struct regulator_dev *rdev,
125122
val = (val & ~STM32_VRS) | FIELD_PREP(STM32_VRS, sel);
126123
writel_relaxed(val, priv->base + STM32_VREFBUF_CSR);
127124

128-
pm_runtime_mark_last_busy(priv->dev);
129125
pm_runtime_put_autosuspend(priv->dev);
130126

131127
return 0;
@@ -144,7 +140,6 @@ static int stm32_vrefbuf_get_voltage_sel(struct regulator_dev *rdev)
144140
val = readl_relaxed(priv->base + STM32_VREFBUF_CSR);
145141
ret = FIELD_GET(STM32_VRS, val);
146142

147-
pm_runtime_mark_last_busy(priv->dev);
148143
pm_runtime_put_autosuspend(priv->dev);
149144

150145
return ret;
@@ -218,7 +213,6 @@ static int stm32_vrefbuf_probe(struct platform_device *pdev)
218213
}
219214
platform_set_drvdata(pdev, rdev);
220215

221-
pm_runtime_mark_last_busy(&pdev->dev);
222216
pm_runtime_put_autosuspend(&pdev->dev);
223217

224218
return 0;

0 commit comments

Comments
 (0)