All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jacopo Mondi <jacopo+renesas@jmondi.org>
To: kieran.bingham+renesas@ideasonboard.com,
	linux-renesas-soc@vger.kernel.org
Cc: Jacopo Mondi <jacopo+renesas@jmondi.org>,
	laurent.pinchart@ideasonboard.com, niklas.soderlund@ragnatech.se,
	hyunk@xilinx.com, manivannan.sadhasivam@linaro.org
Subject: [v8-rc1 08/20] squash! max9286: Convert to use devm_regulator_get()
Date: Thu, 16 Apr 2020 12:40:40 +0200	[thread overview]
Message-ID: <20200416104052.2643098-9-jacopo+renesas@jmondi.org> (raw)
In-Reply-To: <20200416104052.2643098-1-jacopo+renesas@jmondi.org>

From: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>

 - Convert to use devm_regulator_get()
---
 drivers/media/i2c/max9286.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/media/i2c/max9286.c b/drivers/media/i2c/max9286.c
index d0749c537152..08fd946c25f0 100644
--- a/drivers/media/i2c/max9286.c
+++ b/drivers/media/i2c/max9286.c
@@ -1187,7 +1187,7 @@ static int max9286_probe(struct i2c_client *client)
 	if (ret)
 		goto err_powerdown;
 
-	priv->regulator = regulator_get(&client->dev, "poc");
+	priv->regulator = devm_regulator_get(&client->dev, "poc");
 	if (IS_ERR(priv->regulator)) {
 		if (PTR_ERR(priv->regulator) != -EPROBE_DEFER)
 			dev_err(&client->dev,
@@ -1249,7 +1249,6 @@ static int max9286_remove(struct i2c_client *client)
 
 	if (priv->poc_enabled)
 		regulator_disable(priv->regulator);
-	regulator_put(priv->regulator);
 
 	gpiod_set_value_cansleep(priv->gpiod_pwdn, 0);
 
-- 
2.26.0


  parent reply	other threads:[~2020-04-16 10:45 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-16 10:40 [v8-rc1 00/20] GMSL: max9286-v8-rc1 + RDAMC20-v8 Jacopo Mondi
2020-04-16 10:40 ` [v8-rc1 01/20] media: i2c: Add MAX9286 driver Jacopo Mondi
2020-04-16 10:40 ` [v8-rc1 02/20] fixup! " Jacopo Mondi
2020-04-16 10:40 ` [v8-rc1 03/20] squash!: max9286: Rebase on latest media/master Jacopo Mondi
2020-04-16 10:54   ` Kieran Bingham
2020-04-16 10:40 ` [v8-rc1 04/20] squash! max9286: Update the bound_sources mask on unbind Jacopo Mondi
2020-04-16 10:40 ` [v8-rc1 05/20] squash! max9286: convert probe kzalloc Jacopo Mondi
2020-04-16 10:40 ` [v8-rc1 06/20] squash! max9286: Fix cleanup path from GPIO powerdown Jacopo Mondi
2020-04-16 10:40 ` [v8-rc1 07/20] squash! max9286: cleanup GPIO device registration fail path Jacopo Mondi
2020-04-16 10:40 ` Jacopo Mondi [this message]
2020-04-16 10:40 ` [v8-rc1 09/20] squash! max9286: Fit max9286_parse_dt print on one line Jacopo Mondi
2020-04-16 10:40 ` [v8-rc1 10/20] squash! max9286: Move multi-device workarounds out of upstream Jacopo Mondi
2020-04-16 10:40 ` [v8-rc1 11/20] squash! max9286: Remove I2C mod-table Jacopo Mondi
2020-04-16 10:40 ` [v8-rc1 12/20] sqaush! max9286: Lock format changes Jacopo Mondi
2020-04-16 10:40 ` [v8-rc1 13/20] squash! max9286: Implement Pixelrate control Jacopo Mondi
2020-04-16 10:40 ` [v8-rc1 14/20] squash! max9286: Calculate pixel rate Jacopo Mondi
2020-04-16 10:45   ` Kieran Bingham
2020-04-16 11:34     ` Jacopo Mondi
2020-04-16 10:40 ` [v8-rc1 15/20] squash! max9286: Disable overlap window Jacopo Mondi
2020-04-16 10:50   ` Kieran Bingham
2020-04-16 11:31     ` Jacopo Mondi
2020-04-16 11:31       ` Kieran Bingham
2020-04-16 11:44         ` Jacopo Mondi
2020-04-16 10:40 ` [v8-rc1 16/20] sqaush! max9286: Describe pad index usage Jacopo Mondi
2020-04-16 10:40 ` [v8-rc1 17/20] sqaush! max9286: Remove poc_enabled workaround Jacopo Mondi
2020-04-16 10:40 ` [v8-rc1 18/20] squash! max9286: Put of node on error Jacopo Mondi
2020-04-16 10:40 ` [v8-rc1 19/20] dt-bindings: media: i2c: Add bindings for IMI RDACM2x Jacopo Mondi
2020-04-16 10:40 ` [v8-rc1 20/20] media: i2c: Add RDACM20 driver Jacopo Mondi
2020-04-16 11:08   ` Jacopo Mondi

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=20200416104052.2643098-9-jacopo+renesas@jmondi.org \
    --to=jacopo+renesas@jmondi.org \
    --cc=hyunk@xilinx.com \
    --cc=kieran.bingham+renesas@ideasonboard.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=niklas.soderlund@ragnatech.se \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.