mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 20:14:06 +02:00
regulator: fp9931: Fix handling of mandatory "vin" supply
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: 12d821bd13 ("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>
This commit is contained in:
parent
d342f5e355
commit
5806893240
|
|
@ -446,7 +446,7 @@ static int fp9931_probe(struct i2c_client *client)
|
|||
return dev_err_probe(&client->dev, PTR_ERR(data->regmap),
|
||||
"failed to allocate regmap!\n");
|
||||
|
||||
data->vin_reg = devm_regulator_get_optional(&client->dev, "vin");
|
||||
data->vin_reg = devm_regulator_get(&client->dev, "vin");
|
||||
if (IS_ERR(data->vin_reg))
|
||||
return dev_err_probe(&client->dev, PTR_ERR(data->vin_reg),
|
||||
"failed to get vin regulator\n");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user