浏览代码

iio: proximity: pulsedlight-lidar-lite-v2: cleanup power management

Remove pm_runtime_mark_last_busy() call that wasn't need in the probe
since the device should be put to sleep.

Clarification from Matt:
Basically it going to be suspended once pm_runtime_idle() is called,
and setting the last busy is useless and not needed.
Clearly this doesn't affect the device running but just makes the code
more consistent with other uses.

Signed-off-by: Matt Ranostay <matt@ranostay.consulting>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Matt Ranostay 8 年之前
父节点
当前提交
a84a6a8aa0
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/iio/proximity/pulsedlight-lidar-lite-v2.c

+ 0 - 2
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c

@@ -301,8 +301,6 @@ static int lidar_probe(struct i2c_client *client,
 	if (ret)
 	if (ret)
 		goto error_unreg_buffer;
 		goto error_unreg_buffer;
 	pm_runtime_enable(&client->dev);
 	pm_runtime_enable(&client->dev);
-
-	pm_runtime_mark_last_busy(&client->dev);
 	pm_runtime_idle(&client->dev);
 	pm_runtime_idle(&client->dev);
 
 
 	return 0;
 	return 0;