summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ranostay <mranostay@gmail.com>2016-10-15 21:04:37 +0300
committerJonathan Cameron <jic23@kernel.org>2016-10-23 21:34:26 +0300
commita84a6a8aa0f6e02dec63a2ff69946f80785e35b9 (patch)
tree7a8e771419f830f5c8385ded943df7a7205ee063
parent815bbc87462ae6e5b4d126f6e698fb990270c891 (diff)
downloadlinux-a84a6a8aa0f6e02dec63a2ff69946f80785e35b9.tar.xz
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>
-rw-r--r--drivers/iio/proximity/pulsedlight-lidar-lite-v2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iio/proximity/pulsedlight-lidar-lite-v2.c b/drivers/iio/proximity/pulsedlight-lidar-lite-v2.c
index 3141c3c161bb..1fa9eefa0982 100644
--- a/drivers/iio/proximity/pulsedlight-lidar-lite-v2.c
+++ b/drivers/iio/proximity/pulsedlight-lidar-lite-v2.c
@@ -301,8 +301,6 @@ static int lidar_probe(struct i2c_client *client,
if (ret)
goto error_unreg_buffer;
pm_runtime_enable(&client->dev);
-
- pm_runtime_mark_last_busy(&client->dev);
pm_runtime_idle(&client->dev);
return 0;