From: Matt Ranostay Date: Sat, 15 Oct 2016 18:04:37 +0000 (-0700) Subject: iio: proximity: pulsedlight-lidar-lite-v2: cleanup power management X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a84a6a8aa0f6e02dec63a2ff69946f80785e35b9;p=linux-beck.git 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 Signed-off-by: Jonathan Cameron --- 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;