linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matt Ranostay <mranostay@gmail.com>
To: linux-iio@vger.kernel.org
Cc: Matt Ranostay <matt@ranostay.consulting>
Subject: [PATCH] iio: proximity: pulsedlight-lidar-lite-v2: cleanup power management
Date: Sat, 15 Oct 2016 11:04:37 -0700	[thread overview]
Message-ID: <1476554677-1777-1-git-send-email-matt@ranostay.consulting> (raw)

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

Signed-off-by: Matt Ranostay <matt@ranostay.consulting>
---
 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c | 2 --
 1 file changed, 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;
-- 
2.7.4


             reply	other threads:[~2016-10-15 18:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-15 18:04 Matt Ranostay [this message]
2016-10-16 13:41 ` [PATCH] iio: proximity: pulsedlight-lidar-lite-v2: cleanup power management Jonathan Cameron
2016-10-16 17:52   ` Matt Ranostay
2016-10-22 18:44     ` Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1476554677-1777-1-git-send-email-matt@ranostay.consulting \
    --to=mranostay@gmail.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=matt@ranostay.consulting \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).