Skip to content

Commit 90a750a

Browse files
Robby Caigregkh
authored andcommitted
regulator: fp9931: Fix handling of mandatory "vin" supply
[ Upstream commit 5806893 ] The FP9931 requires a mandatory "vin" power supply to operate. Replace devm_regulator_get_optional() with devm_regulator_get() to enforce this mandatory dependency. Fixes: 12d821b ("regulator: Add FP9931/JD9930 driver") Signed-off-by: Robby Cai <robby.cai@nxp.com> Link: https://patch.msgid.link/20260313133102.2749890-3-robby.cai@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent f334ef2 commit 90a750a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/regulator/fp9931.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ static int fp9931_probe(struct i2c_client *client)
446446
return dev_err_probe(&client->dev, PTR_ERR(data->regmap),
447447
"failed to allocate regmap!\n");
448448

449-
data->vin_reg = devm_regulator_get_optional(&client->dev, "vin");
449+
data->vin_reg = devm_regulator_get(&client->dev, "vin");
450450
if (IS_ERR(data->vin_reg))
451451
return dev_err_probe(&client->dev, PTR_ERR(data->vin_reg),
452452
"failed to get vin regulator\n");

0 commit comments

Comments
 (0)