mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 02:15:57 +00:00
backlight: as3711_bl: Handle deferred probe
Don't pollute dmesg on deferred probe and simplify the code with dev_err_probe(). Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240305-backlight-probe-v2-4-609b0cf24bde@linaro.org Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
a2cd3ab2a4
commit
41f1b3edb5
@ -383,10 +383,8 @@ static int as3711_backlight_probe(struct platform_device *pdev)
|
||||
|
||||
if (pdev->dev.parent->of_node) {
|
||||
ret = as3711_backlight_parse_dt(&pdev->dev);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "DT parsing failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
if (ret < 0)
|
||||
return dev_err_probe(&pdev->dev, ret, "DT parsing failed\n");
|
||||
}
|
||||
|
||||
if (!pdata->su1_fb && !pdata->su2_fb) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user