[PATCH 21/51] Input: cs40l50: Switch to __pm_runtime_put_autosuspend()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



pm_runtime_put_autosuspend() will soon be changed to include a call to
pm_runtime_mark_last_busy(). This patch switches the current users to
__pm_runtime_put_autosuspend() which will continue to have the
functionality of old pm_runtime_put_autosuspend().

Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>
---
 drivers/input/misc/cs40l50-vibra.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/input/misc/cs40l50-vibra.c b/drivers/input/misc/cs40l50-vibra.c
index 03bdb7c26ec0..8555f0d93d3f 100644
--- a/drivers/input/misc/cs40l50-vibra.c
+++ b/drivers/input/misc/cs40l50-vibra.c
@@ -307,7 +307,7 @@ static void cs40l50_add_worker(struct work_struct *work)
 	}
 err_pm:
 	pm_runtime_mark_last_busy(vib->dev);
-	pm_runtime_put_autosuspend(vib->dev);
+	__pm_runtime_put_autosuspend(vib->dev);
 err_exit:
 	work_data->error = error;
 }
@@ -366,7 +366,7 @@ static void cs40l50_start_worker(struct work_struct *work)
 	}
 
 	pm_runtime_mark_last_busy(vib->dev);
-	pm_runtime_put_autosuspend(vib->dev);
+	__pm_runtime_put_autosuspend(vib->dev);
 err_free:
 	kfree(work_data);
 }
@@ -382,7 +382,7 @@ static void cs40l50_stop_worker(struct work_struct *work)
 	vib->dsp.write(vib->dev, vib->regmap, vib->dsp.stop_cmd);
 
 	pm_runtime_mark_last_busy(vib->dev);
-	pm_runtime_put_autosuspend(vib->dev);
+	__pm_runtime_put_autosuspend(vib->dev);
 
 	kfree(work_data);
 }
@@ -454,7 +454,7 @@ static void cs40l50_erase_worker(struct work_struct *work)
 	kfree(erase_effect);
 err_pm:
 	pm_runtime_mark_last_busy(vib->dev);
-	pm_runtime_put_autosuspend(vib->dev);
+	__pm_runtime_put_autosuspend(vib->dev);
 err_exit:
 	work_data->error = error;
 }
-- 
2.39.5





[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux