Skip to content

Commit 8f7f3e0

Browse files
committed
media: i2c: dw9719: Update PM last busy time upon close
Update the close callback to match other similar drivers like dw9768. Signed-off-by: Val Packett <[email protected]>
1 parent 6fc04b1 commit 8f7f3e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/media/i2c/dw9719.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ static int dw9719_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh)
286286

287287
static int dw9719_close(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh)
288288
{
289-
pm_runtime_put(sd->dev);
289+
pm_runtime_mark_last_busy(sd->dev);
290+
__pm_runtime_put_autosuspend(sd->dev);
290291

291292
return 0;
292293
}

0 commit comments

Comments
 (0)