Message ID | 20200409121202.11130-6-kieran.bingham+renesas@ideasonboard.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Kieran Bingham |
Headers | show |
Series | max9286 v8 - modifications | expand |
On 09/04/2020 13:11, Kieran Bingham wrote: > - Convert to use devm_regulator_get() Oh dear, Sometimes things are just easier to see when they're in my inbox. This is missing the removal of the regulator_puts() which are no longer required ;-) -- Kieran > --- > drivers/media/i2c/max9286.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/i2c/max9286.c b/drivers/media/i2c/max9286.c > index d0749c537152..c374078c7001 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, >
diff --git a/drivers/media/i2c/max9286.c b/drivers/media/i2c/max9286.c index d0749c537152..c374078c7001 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,