]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Input: cs40l50 - remove redundant pm_runtime_mark_last_busy() calls
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 27 Oct 2025 11:58:22 +0000 (13:58 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 13 Dec 2025 09:23:01 +0000 (01:23 -0800)
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 <sakari.ailus@linux.intel.com>
Link: https://patch.msgid.link/20251027115823.391080-2-sakari.ailus@linux.intel.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/cs40l50-vibra.c

index 7aa7d577e01b1846894e3c285872b3233015328d..90410025bbae5ee0e676c2be2cc361066cd70821 100644 (file)
@@ -308,7 +308,6 @@ err_free:
                        list_add(&effect->list, &vib->effect_head);
        }
 err_pm:
-       pm_runtime_mark_last_busy(vib->dev);
        pm_runtime_put_autosuspend(vib->dev);
 err_exit:
        work_data->error = error;
@@ -368,7 +367,6 @@ static void cs40l50_start_worker(struct work_struct *work)
                dev_err(vib->dev, "Effect to play not found\n");
        }
 
-       pm_runtime_mark_last_busy(vib->dev);
        pm_runtime_put_autosuspend(vib->dev);
 err_free:
        kfree(work_data);
@@ -384,7 +382,6 @@ 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);
 
        kfree(work_data);
@@ -456,7 +453,6 @@ static void cs40l50_erase_worker(struct work_struct *work)
        list_del(&erase_effect->list);
        kfree(erase_effect);
 err_pm:
-       pm_runtime_mark_last_busy(vib->dev);
        pm_runtime_put_autosuspend(vib->dev);
 err_exit:
        work_data->error = error;