* [PATCH v3 2/4] leds: lp8788: Convert to dev_err_probe()
2026-07-25 8:13 [PATCH v3 1/4] leds: cobalt-raq: Add missing MODULE_DESCRIPTION Arunachalam
@ 2026-07-25 8:13 ` Arunachalam
2026-07-25 8:13 ` [PATCH v3 3/4] leds: menf21bmc: " Arunachalam
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Arunachalam @ 2026-07-25 8:13 UTC (permalink / raw)
To: Lee Jones, Pavel Machek
Cc: Andreas Werner, linux-leds, linux-kernel, Arunachalam
Replace open-coded dev_err() + return patterns with dev_err_probe(),
which also handles -EPROBE_DEFER correctly.
Signed-off-by: Arunachalam <arun07172003@gmail.com>
---
drivers/leds/leds-lp8788.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/drivers/leds/leds-lp8788.c b/drivers/leds/leds-lp8788.c
index 9b9525ccc..259ac50e8 100644
--- a/drivers/leds/leds-lp8788.c
+++ b/drivers/leds/leds-lp8788.c
@@ -143,16 +143,12 @@ static int lp8788_led_probe(struct platform_device *pdev)
mutex_init(&led->lock);
ret = lp8788_led_init_device(led, led_pdata);
- if (ret) {
- dev_err(dev, "led init device err: %d\n", ret);
- return ret;
- }
+ if (ret)
+ return dev_err_probe(dev, ret, "led init device err\n");
ret = devm_led_classdev_register(dev, &led->led_dev);
- if (ret) {
- dev_err(dev, "led register err: %d\n", ret);
- return ret;
- }
+ if (ret)
+ return dev_err_probe(dev, ret, "led register err\n");
return 0;
}
--
2.39.5
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH v3 3/4] leds: menf21bmc: Convert to dev_err_probe()
2026-07-25 8:13 [PATCH v3 1/4] leds: cobalt-raq: Add missing MODULE_DESCRIPTION Arunachalam
2026-07-25 8:13 ` [PATCH v3 2/4] leds: lp8788: Convert to dev_err_probe() Arunachalam
@ 2026-07-25 8:13 ` Arunachalam
2026-07-25 8:13 ` [PATCH v3 4/4] leds: 88pm860x: " Arunachalam
2026-08-06 13:53 ` [PATCH v3 1/4] leds: cobalt-raq: Add missing MODULE_DESCRIPTION Lee Jones
3 siblings, 0 replies; 6+ messages in thread
From: Arunachalam @ 2026-07-25 8:13 UTC (permalink / raw)
To: Lee Jones, Pavel Machek
Cc: Andreas Werner, linux-leds, linux-kernel, Arunachalam
Replace open-coded dev_err() + return pattern with dev_err_probe(),
which also handles -EPROBE_DEFER correctly.
Signed-off-by: Arunachalam <arun07172003@gmail.com>
---
drivers/leds/leds-menf21bmc.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/leds/leds-menf21bmc.c b/drivers/leds/leds-menf21bmc.c
index 6b1b47160..a7e4db487 100644
--- a/drivers/leds/leds-menf21bmc.c
+++ b/drivers/leds/leds-menf21bmc.c
@@ -84,10 +84,8 @@ static int menf21bmc_led_probe(struct platform_device *pdev)
leds[i].cdev.brightness_set = menf21bmc_led_set;
leds[i].i2c_client = i2c_client;
ret = devm_led_classdev_register(&pdev->dev, &leds[i].cdev);
- if (ret < 0) {
- dev_err(&pdev->dev, "failed to register LED device\n");
- return ret;
- }
+ if (ret < 0)
+ return dev_err_probe(&pdev->dev, ret, "failed to register LED device\n");
}
dev_info(&pdev->dev, "MEN 140F21P00 BMC LED device enabled\n");
--
2.39.5
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH v3 4/4] leds: 88pm860x: Convert to dev_err_probe()
2026-07-25 8:13 [PATCH v3 1/4] leds: cobalt-raq: Add missing MODULE_DESCRIPTION Arunachalam
2026-07-25 8:13 ` [PATCH v3 2/4] leds: lp8788: Convert to dev_err_probe() Arunachalam
2026-07-25 8:13 ` [PATCH v3 3/4] leds: menf21bmc: " Arunachalam
@ 2026-07-25 8:13 ` Arunachalam
2026-08-06 13:53 ` [PATCH v3 1/4] leds: cobalt-raq: Add missing MODULE_DESCRIPTION Lee Jones
3 siblings, 0 replies; 6+ messages in thread
From: Arunachalam @ 2026-07-25 8:13 UTC (permalink / raw)
To: Lee Jones, Pavel Machek
Cc: Andreas Werner, linux-leds, linux-kernel, Arunachalam
Replace open-coded dev_err() + return patterns with dev_err_probe(),
which also handles -EPROBE_DEFER correctly.
Signed-off-by: Arunachalam <arun07172003@gmail.com>
---
drivers/leds/leds-88pm860x.c | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/drivers/leds/leds-88pm860x.c b/drivers/leds/leds-88pm860x.c
index ef5c6c466..65f2af134 100644
--- a/drivers/leds/leds-88pm860x.c
+++ b/drivers/leds/leds-88pm860x.c
@@ -152,16 +152,12 @@ static int pm860x_led_probe(struct platform_device *pdev)
if (data == NULL)
return -ENOMEM;
res = platform_get_resource_byname(pdev, IORESOURCE_REG, "control");
- if (!res) {
- dev_err(&pdev->dev, "No REG resource for control\n");
- return -ENXIO;
- }
+ if (!res)
+ return dev_err_probe(&pdev->dev, -ENXIO, "No REG resource for control\n");
data->reg_control = res->start;
res = platform_get_resource_byname(pdev, IORESOURCE_REG, "blink");
- if (!res) {
- dev_err(&pdev->dev, "No REG resource for blink\n");
- return -ENXIO;
- }
+ if (!res)
+ return dev_err_probe(&pdev->dev, -ENXIO, "No REG resource for blink\n");
data->reg_blink = res->start;
memset(data->name, 0, MFD_NAME_SIZE);
switch (pdev->id) {
@@ -203,10 +199,8 @@ static int pm860x_led_probe(struct platform_device *pdev)
mutex_init(&data->lock);
ret = led_classdev_register(chip->dev, &data->cdev);
- if (ret < 0) {
- dev_err(&pdev->dev, "Failed to register LED: %d\n", ret);
- return ret;
- }
+ if (ret < 0)
+ return dev_err_probe(&pdev->dev, ret, "Failed to register LED\n");
pm860x_led_set(&data->cdev, 0);
platform_set_drvdata(pdev, data);
--
2.39.5
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH v3 1/4] leds: cobalt-raq: Add missing MODULE_DESCRIPTION
2026-07-25 8:13 [PATCH v3 1/4] leds: cobalt-raq: Add missing MODULE_DESCRIPTION Arunachalam
` (2 preceding siblings ...)
2026-07-25 8:13 ` [PATCH v3 4/4] leds: 88pm860x: " Arunachalam
@ 2026-08-06 13:53 ` Lee Jones
2026-08-06 13:53 ` Lee Jones
3 siblings, 1 reply; 6+ messages in thread
From: Lee Jones @ 2026-08-06 13:53 UTC (permalink / raw)
To: Arunachalam; +Cc: Pavel Machek, Andreas Werner, linux-leds, linux-kernel
On Sat, 25 Jul 2026, Arunachalam wrote:
> Add the missing MODULE_DESCRIPTION() macro, which is required by
> modpost and was missing from this driver.
>
> Signed-off-by: Arunachalam <arun07172003@gmail.com>
This set is un-reviewable.
Please submit both sets again separately.
--
Lee Jones
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH v3 1/4] leds: cobalt-raq: Add missing MODULE_DESCRIPTION
2026-08-06 13:53 ` [PATCH v3 1/4] leds: cobalt-raq: Add missing MODULE_DESCRIPTION Lee Jones
@ 2026-08-06 13:53 ` Lee Jones
0 siblings, 0 replies; 6+ messages in thread
From: Lee Jones @ 2026-08-06 13:53 UTC (permalink / raw)
To: Arunachalam; +Cc: Pavel Machek, Andreas Werner, linux-leds, linux-kernel
On Thu, 06 Aug 2026, Lee Jones wrote:
> On Sat, 25 Jul 2026, Arunachalam wrote:
>
> > Add the missing MODULE_DESCRIPTION() macro, which is required by
> > modpost and was missing from this driver.
> >
> > Signed-off-by: Arunachalam <arun07172003@gmail.com>
>
> This set is un-reviewable.
>
> Please submit both sets again separately.
Also, you should use your full name for submissions.
--
Lee Jones
^ permalink raw reply [flat|nested] 6+ messages in thread