We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3923468 commit 23749cfCopy full SHA for 23749cf
drivers/video/backlight/gpio_backlight.c
@@ -64,13 +64,9 @@ static int gpio_backlight_probe(struct platform_device *pdev)
64
def_value = device_property_read_bool(dev, "default-on");
65
66
gbl->gpiod = devm_gpiod_get(dev, NULL, GPIOD_ASIS);
67
- if (IS_ERR(gbl->gpiod)) {
68
- ret = PTR_ERR(gbl->gpiod);
69
- if (ret != -EPROBE_DEFER)
70
- dev_err(dev,
71
- "Error: The gpios parameter is missing or invalid.\n");
72
- return ret;
73
- }
+ if (IS_ERR(gbl->gpiod))
+ return dev_err_probe(dev, PTR_ERR(gbl->gpiod),
+ "The gpios parameter is missing or invalid\n");
74
75
memset(&props, 0, sizeof(props));
76
props.type = BACKLIGHT_RAW;
0 commit comments