Skip to content

Commit 41f1b3e

Browse files
krzklag-linaro
authored andcommitted
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 <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent a2cd3ab commit 41f1b3e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/video/backlight/as3711_bl.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,8 @@ static int as3711_backlight_probe(struct platform_device *pdev)
383383

384384
if (pdev->dev.parent->of_node) {
385385
ret = as3711_backlight_parse_dt(&pdev->dev);
386-
if (ret < 0) {
387-
dev_err(&pdev->dev, "DT parsing failed: %d\n", ret);
388-
return ret;
389-
}
386+
if (ret < 0)
387+
return dev_err_probe(&pdev->dev, ret, "DT parsing failed\n");
390388
}
391389

392390
if (!pdata->su1_fb && !pdata->su2_fb) {

0 commit comments

Comments
 (0)