mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
regulator: userspace-consumer: quiet device deferral
Trying to use userspace-consumer when the required supplies have not yet been probed will throw an error message on deferral: reg-userspace-consumer output-led-power: Failed to get supplies: -517 So, lets simply use dev_err_probe() instead of dev_err() to not print errors in case when driver probe is being deferred. Signed-off-by: Robert Marko <robimarko@gmail.com> Link: https://patch.msgid.link/20240623140947.1252376-1-robimarko@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
7bbb71150e
commit
61a98ffc20
@ -158,10 +158,8 @@ static int regulator_userspace_consumer_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
ret = devm_regulator_bulk_get_exclusive(&pdev->dev, drvdata->num_supplies,
|
ret = devm_regulator_bulk_get_exclusive(&pdev->dev, drvdata->num_supplies,
|
||||||
drvdata->supplies);
|
drvdata->supplies);
|
||||||
if (ret) {
|
if (ret)
|
||||||
dev_err(&pdev->dev, "Failed to get supplies: %d\n", ret);
|
return dev_err_probe(&pdev->dev, ret, "Failed to get supplies\n");
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
platform_set_drvdata(pdev, drvdata);
|
platform_set_drvdata(pdev, drvdata);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user