* [PATCH 1/7] platform: arm64: Remove redundant dev_err_probe()
2026-07-17 11:20 [PATCH 0/7] platform: Remove redundant error messages on IRQ request failure Pan Chuang
@ 2026-07-17 11:20 ` Pan Chuang
2026-07-17 23:59 ` Sebastian Reichel
2026-07-17 11:20 ` [PATCH 2/7] platform/chrome: Remove redundant dev_err() Pan Chuang
` (5 subsequent siblings)
6 siblings, 1 reply; 10+ messages in thread
From: Pan Chuang @ 2026-07-17 11:20 UTC (permalink / raw)
To: Hans de Goede, Ilpo Järvinen, Bryan O'Donoghue,
Pengyu Luo, Sebastian Reichel, open list:ARM64 PLATFORM DRIVERS,
open list
Cc: Pan Chuang
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
devm_request_*_irq()"), devm_request_threaded_irq() automatically logs
detailed error messages on failure. Remove the now-redundant
driver-specific dev_err_probe() calls.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
---
drivers/platform/arm64/acer-aspire1-ec.c | 2 +-
drivers/platform/arm64/huawei-gaokun-ec.c | 2 +-
drivers/platform/arm64/lenovo-thinkpad-t14s.c | 2 +-
drivers/platform/arm64/lenovo-yoga-c630.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/platform/arm64/acer-aspire1-ec.c b/drivers/platform/arm64/acer-aspire1-ec.c
index 08d0b155a197..501c62a096f8 100644
--- a/drivers/platform/arm64/acer-aspire1-ec.c
+++ b/drivers/platform/arm64/acer-aspire1-ec.c
@@ -514,7 +514,7 @@ static int aspire_ec_probe(struct i2c_client *client)
aspire_ec_irq_handler, IRQF_ONESHOT,
dev_name(dev), ec);
if (ret)
- return dev_err_probe(dev, ret, "Failed to request irq\n");
+ return ret;
return 0;
}
diff --git a/drivers/platform/arm64/huawei-gaokun-ec.c b/drivers/platform/arm64/huawei-gaokun-ec.c
index 80a8ba8b8dda..d4ce8ad6426c 100644
--- a/drivers/platform/arm64/huawei-gaokun-ec.c
+++ b/drivers/platform/arm64/huawei-gaokun-ec.c
@@ -783,7 +783,7 @@ static int gaokun_ec_probe(struct i2c_client *client)
gaokun_ec_irq_handler, IRQF_ONESHOT,
dev_name(dev), ec);
if (ret)
- return dev_err_probe(dev, ret, "Failed to request IRQ\n");
+ return ret;
ec->hwmon_dev = devm_hwmon_device_register_with_info(dev, "gaokun_ec_hwmon",
ec, &gaokun_ec_hwmon_chip_info, NULL);
diff --git a/drivers/platform/arm64/lenovo-thinkpad-t14s.c b/drivers/platform/arm64/lenovo-thinkpad-t14s.c
index e7acb66b77f2..191ecd7f85b5 100644
--- a/drivers/platform/arm64/lenovo-thinkpad-t14s.c
+++ b/drivers/platform/arm64/lenovo-thinkpad-t14s.c
@@ -594,7 +594,7 @@ static int t14s_ec_probe(struct i2c_client *client)
t14s_ec_irq_handler,
IRQF_ONESHOT, dev_name(dev), ec);
if (ret < 0)
- return dev_err_probe(dev, ret, "Failed to get IRQ\n");
+ return ret;
/*
* Disable wakeup support by default, because the driver currently does
diff --git a/drivers/platform/arm64/lenovo-yoga-c630.c b/drivers/platform/arm64/lenovo-yoga-c630.c
index a8600a977fbc..cad40c58c55b 100644
--- a/drivers/platform/arm64/lenovo-yoga-c630.c
+++ b/drivers/platform/arm64/lenovo-yoga-c630.c
@@ -221,7 +221,7 @@ static int yoga_c630_ec_probe(struct i2c_client *client)
NULL, yoga_c630_ec_thread_intr,
IRQF_ONESHOT, "yoga_c630_ec", ec);
if (ret < 0)
- return dev_err_probe(dev, ret, "unable to request irq\n");
+ return ret;
ret = yoga_c630_aux_init(dev, YOGA_C630_DEV_PSY, ec);
if (ret)
--
2.34.1
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH 1/7] platform: arm64: Remove redundant dev_err_probe()
2026-07-17 11:20 ` [PATCH 1/7] platform: arm64: Remove redundant dev_err_probe() Pan Chuang
@ 2026-07-17 23:59 ` Sebastian Reichel
0 siblings, 0 replies; 10+ messages in thread
From: Sebastian Reichel @ 2026-07-17 23:59 UTC (permalink / raw)
To: Pan Chuang
Cc: Hans de Goede, Ilpo Järvinen, Bryan O'Donoghue,
Pengyu Luo, open list:ARM64 PLATFORM DRIVERS, open list
[-- Attachment #1: Type: text/plain, Size: 3111 bytes --]
Hi,
On Fri, Jul 17, 2026 at 07:20:39PM +0800, Pan Chuang wrote:
> Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
> devm_request_*_irq()"), devm_request_threaded_irq() automatically logs
> detailed error messages on failure. Remove the now-redundant
> driver-specific dev_err_probe() calls.
>
> Signed-off-by: Pan Chuang <panchuang@vivo.com>
> ---
Reviewed-by: Sebastian Reichel <sre@kernel.org>
Greetings,
-- Sebastian
> drivers/platform/arm64/acer-aspire1-ec.c | 2 +-
> drivers/platform/arm64/huawei-gaokun-ec.c | 2 +-
> drivers/platform/arm64/lenovo-thinkpad-t14s.c | 2 +-
> drivers/platform/arm64/lenovo-yoga-c630.c | 2 +-
> 4 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/platform/arm64/acer-aspire1-ec.c b/drivers/platform/arm64/acer-aspire1-ec.c
> index 08d0b155a197..501c62a096f8 100644
> --- a/drivers/platform/arm64/acer-aspire1-ec.c
> +++ b/drivers/platform/arm64/acer-aspire1-ec.c
> @@ -514,7 +514,7 @@ static int aspire_ec_probe(struct i2c_client *client)
> aspire_ec_irq_handler, IRQF_ONESHOT,
> dev_name(dev), ec);
> if (ret)
> - return dev_err_probe(dev, ret, "Failed to request irq\n");
> + return ret;
>
> return 0;
> }
> diff --git a/drivers/platform/arm64/huawei-gaokun-ec.c b/drivers/platform/arm64/huawei-gaokun-ec.c
> index 80a8ba8b8dda..d4ce8ad6426c 100644
> --- a/drivers/platform/arm64/huawei-gaokun-ec.c
> +++ b/drivers/platform/arm64/huawei-gaokun-ec.c
> @@ -783,7 +783,7 @@ static int gaokun_ec_probe(struct i2c_client *client)
> gaokun_ec_irq_handler, IRQF_ONESHOT,
> dev_name(dev), ec);
> if (ret)
> - return dev_err_probe(dev, ret, "Failed to request IRQ\n");
> + return ret;
>
> ec->hwmon_dev = devm_hwmon_device_register_with_info(dev, "gaokun_ec_hwmon",
> ec, &gaokun_ec_hwmon_chip_info, NULL);
> diff --git a/drivers/platform/arm64/lenovo-thinkpad-t14s.c b/drivers/platform/arm64/lenovo-thinkpad-t14s.c
> index e7acb66b77f2..191ecd7f85b5 100644
> --- a/drivers/platform/arm64/lenovo-thinkpad-t14s.c
> +++ b/drivers/platform/arm64/lenovo-thinkpad-t14s.c
> @@ -594,7 +594,7 @@ static int t14s_ec_probe(struct i2c_client *client)
> t14s_ec_irq_handler,
> IRQF_ONESHOT, dev_name(dev), ec);
> if (ret < 0)
> - return dev_err_probe(dev, ret, "Failed to get IRQ\n");
> + return ret;
>
> /*
> * Disable wakeup support by default, because the driver currently does
> diff --git a/drivers/platform/arm64/lenovo-yoga-c630.c b/drivers/platform/arm64/lenovo-yoga-c630.c
> index a8600a977fbc..cad40c58c55b 100644
> --- a/drivers/platform/arm64/lenovo-yoga-c630.c
> +++ b/drivers/platform/arm64/lenovo-yoga-c630.c
> @@ -221,7 +221,7 @@ static int yoga_c630_ec_probe(struct i2c_client *client)
> NULL, yoga_c630_ec_thread_intr,
> IRQF_ONESHOT, "yoga_c630_ec", ec);
> if (ret < 0)
> - return dev_err_probe(dev, ret, "unable to request irq\n");
> + return ret;
>
> ret = yoga_c630_aux_init(dev, YOGA_C630_DEV_PSY, ec);
> if (ret)
> --
> 2.34.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/7] platform/chrome: Remove redundant dev_err()
2026-07-17 11:20 [PATCH 0/7] platform: Remove redundant error messages on IRQ request failure Pan Chuang
2026-07-17 11:20 ` [PATCH 1/7] platform: arm64: Remove redundant dev_err_probe() Pan Chuang
@ 2026-07-17 11:20 ` Pan Chuang
2026-07-17 11:20 ` [PATCH 3/7] platform: cznic: turris-omnia-mcu: Remove redundant dev_err_probe() Pan Chuang
` (4 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Pan Chuang @ 2026-07-17 11:20 UTC (permalink / raw)
To: Benson Leung, Tzung-Bi Shih, Guenter Roeck,
open list:CHROME HARDWARE PLATFORM SUPPORT, open list
Cc: Pan Chuang
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
devm_request_*_irq()"), devm_request_threaded_irq() automatically logs
detailed error messages on failure. Remove the now-redundant
driver-specific dev_err() calls.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
---
drivers/platform/chrome/cros_ec.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/platform/chrome/cros_ec.c b/drivers/platform/chrome/cros_ec.c
index 1da79e3d215b..5d0f5a9187b1 100644
--- a/drivers/platform/chrome/cros_ec.c
+++ b/drivers/platform/chrome/cros_ec.c
@@ -249,11 +249,8 @@ int cros_ec_register(struct cros_ec_device *ec_dev)
cros_ec_irq_thread,
IRQF_TRIGGER_LOW | IRQF_ONESHOT,
"chromeos-ec", ec_dev);
- if (err) {
- dev_err(dev, "Failed to request IRQ %d: %d\n",
- ec_dev->irq, err);
+ if (err)
goto exit;
- }
}
/* Register a platform device for the main EC instance */
--
2.34.1
^ permalink raw reply [flat|nested] 10+ messages in thread* [PATCH 3/7] platform: cznic: turris-omnia-mcu: Remove redundant dev_err_probe()
2026-07-17 11:20 [PATCH 0/7] platform: Remove redundant error messages on IRQ request failure Pan Chuang
2026-07-17 11:20 ` [PATCH 1/7] platform: arm64: Remove redundant dev_err_probe() Pan Chuang
2026-07-17 11:20 ` [PATCH 2/7] platform/chrome: Remove redundant dev_err() Pan Chuang
@ 2026-07-17 11:20 ` Pan Chuang
2026-07-17 11:20 ` [PATCH 4/7] platform: goldfish: pipe: Remove redundant dev_err() Pan Chuang
` (3 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Pan Chuang @ 2026-07-17 11:20 UTC (permalink / raw)
To: Marek Behún, open list; +Cc: Pan Chuang
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
devm_request_*_irq()"), devm_request_threaded_irq() automatically logs
detailed error messages on failure. Remove the now-redundant
driver-specific dev_err_probe() calls.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
---
drivers/platform/cznic/turris-omnia-mcu-gpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/platform/cznic/turris-omnia-mcu-gpio.c b/drivers/platform/cznic/turris-omnia-mcu-gpio.c
index 4e430d6c3fc4..4ffe609be0dd 100644
--- a/drivers/platform/cznic/turris-omnia-mcu-gpio.c
+++ b/drivers/platform/cznic/turris-omnia-mcu-gpio.c
@@ -1079,7 +1079,7 @@ int omnia_mcu_register_gpiochip(struct omnia_mcu *mcu)
omnia_irq_thread_handler, irqflags,
"turris-omnia-mcu", mcu);
if (err)
- return dev_err_probe(dev, err, "Cannot request IRQ\n");
+ return err;
if (!new_api) {
/*
--
2.34.1
^ permalink raw reply [flat|nested] 10+ messages in thread* [PATCH 4/7] platform: goldfish: pipe: Remove redundant dev_err()
2026-07-17 11:20 [PATCH 0/7] platform: Remove redundant error messages on IRQ request failure Pan Chuang
` (2 preceding siblings ...)
2026-07-17 11:20 ` [PATCH 3/7] platform: cznic: turris-omnia-mcu: Remove redundant dev_err_probe() Pan Chuang
@ 2026-07-17 11:20 ` Pan Chuang
2026-07-17 11:20 ` [PATCH 5/7] platform/mellanox: " Pan Chuang
` (2 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Pan Chuang @ 2026-07-17 11:20 UTC (permalink / raw)
To: Uwe Kleine-König (The Capable Hub),
Takashi Sakamoto, Danilo Krummrich, Pan Chuang, Bjorn Helgaas,
Kees Cook, open list
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
devm_request_*_irq()"), devm_request_threaded_irq() automatically logs
detailed error messages on failure. Remove the now-redundant
driver-specific dev_err() calls.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
---
drivers/platform/goldfish/goldfish_pipe.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers/platform/goldfish/goldfish_pipe.c
index fa241ca8feb0..f4f25c0a011c 100644
--- a/drivers/platform/goldfish/goldfish_pipe.c
+++ b/drivers/platform/goldfish/goldfish_pipe.c
@@ -810,10 +810,8 @@ static int goldfish_pipe_device_init(struct platform_device *pdev,
goldfish_pipe_interrupt,
goldfish_interrupt_task,
IRQF_SHARED, "goldfish_pipe", dev);
- if (err) {
- dev_err(&pdev->dev, "unable to allocate IRQ for v2\n");
+ if (err)
return err;
- }
init_miscdevice(&dev->miscdev);
err = misc_register(&dev->miscdev);
--
2.34.1
^ permalink raw reply [flat|nested] 10+ messages in thread* [PATCH 5/7] platform/mellanox: Remove redundant dev_err()
2026-07-17 11:20 [PATCH 0/7] platform: Remove redundant error messages on IRQ request failure Pan Chuang
` (3 preceding siblings ...)
2026-07-17 11:20 ` [PATCH 4/7] platform: goldfish: pipe: Remove redundant dev_err() Pan Chuang
@ 2026-07-17 11:20 ` Pan Chuang
2026-07-17 11:20 ` [PATCH 6/7] platform/raspberrypi: " Pan Chuang
2026-07-17 11:20 ` [PATCH 7/7] platform/x86: Remove redundant dev_err()/dev_err_probe() Pan Chuang
6 siblings, 0 replies; 10+ messages in thread
From: Pan Chuang @ 2026-07-17 11:20 UTC (permalink / raw)
To: Hans de Goede, Ilpo Järvinen, Vadim Pasternak,
open list:MELLANOX HARDWARE PLATFORM SUPPORT, open list
Cc: Pan Chuang
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
devm_request_*_irq()"), devm_request_irq() automatically logs
detailed error messages on failure. Remove the now-redundant
driver-specific dev_err() calls.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
---
drivers/platform/mellanox/mlxbf-tmfifo.c | 1 -
drivers/platform/mellanox/mlxreg-hotplug.c | 4 +---
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/platform/mellanox/mlxbf-tmfifo.c b/drivers/platform/mellanox/mlxbf-tmfifo.c
index 3c6408581373..fb1d424659c6 100644
--- a/drivers/platform/mellanox/mlxbf-tmfifo.c
+++ b/drivers/platform/mellanox/mlxbf-tmfifo.c
@@ -1390,7 +1390,6 @@ static int mlxbf_tmfifo_probe(struct platform_device *pdev)
mlxbf_tmfifo_irq_handler, 0,
"tmfifo", &fifo->irq_info[i]);
if (rc) {
- dev_err(dev, "devm_request_irq failed\n");
fifo->irq_info[i].irq = 0;
return rc;
}
diff --git a/drivers/platform/mellanox/mlxreg-hotplug.c b/drivers/platform/mellanox/mlxreg-hotplug.c
index d246772aafd6..d6549dd21772 100644
--- a/drivers/platform/mellanox/mlxreg-hotplug.c
+++ b/drivers/platform/mellanox/mlxreg-hotplug.c
@@ -740,10 +740,8 @@ static int mlxreg_hotplug_probe(struct platform_device *pdev)
err = devm_request_irq(&pdev->dev, priv->irq,
mlxreg_hotplug_irq_handler, IRQF_TRIGGER_FALLING
| IRQF_SHARED, "mlxreg-hotplug", priv);
- if (err) {
- dev_err(&pdev->dev, "Failed to request irq: %d\n", err);
+ if (err)
return err;
- }
disable_irq(priv->irq);
spin_lock_init(&priv->lock);
--
2.34.1
^ permalink raw reply [flat|nested] 10+ messages in thread* [PATCH 6/7] platform/raspberrypi: Remove redundant dev_err()
2026-07-17 11:20 [PATCH 0/7] platform: Remove redundant error messages on IRQ request failure Pan Chuang
` (4 preceding siblings ...)
2026-07-17 11:20 ` [PATCH 5/7] platform/mellanox: " Pan Chuang
@ 2026-07-17 11:20 ` Pan Chuang
2026-07-17 17:58 ` Stefan Wahren
2026-07-17 11:20 ` [PATCH 7/7] platform/x86: Remove redundant dev_err()/dev_err_probe() Pan Chuang
6 siblings, 1 reply; 10+ messages in thread
From: Pan Chuang @ 2026-07-17 11:20 UTC (permalink / raw)
To: Florian Fainelli, Broadcom internal kernel review list,
Greg Kroah-Hartman, Jai Luthra, Stefan Wahren, Laurent Pinchart,
Pan Chuang, Phil Elwell, Kees Cook,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE,
open list
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
devm_request_*_irq()"), devm_request_irq() automatically logs
detailed error messages on failure. Remove the now-redundant
driver-specific dev_err() calls.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
---
drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c b/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c
index e78641703252..9490ad88df0f 100644
--- a/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c
+++ b/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c
@@ -257,10 +257,8 @@ static int vchiq_platform_init(struct platform_device *pdev, struct vchiq_state
err = devm_request_irq(dev, irq, vchiq_doorbell_irq, IRQF_IRQPOLL,
"VCHIQ doorbell", state);
- if (err) {
- dev_err(dev, "failed to register irq=%d\n", irq);
+ if (err)
return err;
- }
/* Send the base address of the slots to VideoCore */
channelbase = slot_phys;
--
2.34.1
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH 6/7] platform/raspberrypi: Remove redundant dev_err()
2026-07-17 11:20 ` [PATCH 6/7] platform/raspberrypi: " Pan Chuang
@ 2026-07-17 17:58 ` Stefan Wahren
0 siblings, 0 replies; 10+ messages in thread
From: Stefan Wahren @ 2026-07-17 17:58 UTC (permalink / raw)
To: Pan Chuang, Florian Fainelli,
Broadcom internal kernel review list, Greg Kroah-Hartman,
Jai Luthra, Laurent Pinchart, Phil Elwell, Kees Cook,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE,
open list
Am 17.07.26 um 13:20 schrieb Pan Chuang:
> Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
> devm_request_*_irq()"), devm_request_irq() automatically logs
> detailed error messages on failure. Remove the now-redundant
> driver-specific dev_err() calls.
>
> Signed-off-by: Pan Chuang <panchuang@vivo.com>
Reviewed-by: Stefan Wahren <wahrenst@gmx.net>
> ---
> drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c b/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c
> index e78641703252..9490ad88df0f 100644
> --- a/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c
> +++ b/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c
> @@ -257,10 +257,8 @@ static int vchiq_platform_init(struct platform_device *pdev, struct vchiq_state
>
> err = devm_request_irq(dev, irq, vchiq_doorbell_irq, IRQF_IRQPOLL,
> "VCHIQ doorbell", state);
> - if (err) {
> - dev_err(dev, "failed to register irq=%d\n", irq);
> + if (err)
> return err;
> - }
>
> /* Send the base address of the slots to VideoCore */
> channelbase = slot_phys;
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 7/7] platform/x86: Remove redundant dev_err()/dev_err_probe()
2026-07-17 11:20 [PATCH 0/7] platform: Remove redundant error messages on IRQ request failure Pan Chuang
` (5 preceding siblings ...)
2026-07-17 11:20 ` [PATCH 6/7] platform/raspberrypi: " Pan Chuang
@ 2026-07-17 11:20 ` Pan Chuang
6 siblings, 0 replies; 10+ messages in thread
From: Pan Chuang @ 2026-07-17 11:20 UTC (permalink / raw)
To: Corentin Chary, Luke D. Jones, Denis Benato, Hans de Goede,
Ilpo Järvinen, Zha Qipeng, Danilo Krummrich, Pan Chuang,
Takashi Sakamoto, Bjorn Helgaas,
Uwe Kleine-König (The Capable Hub),
Bartosz Golaszewski, Thomas Gleixner, Sebastian Andrzej Siewior,
open list:ASUS NOTEBOOKS AND EEEPC ACPI/WMI EXTRAS DRIVERS,
open list
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
devm_request_*_irq()"),
devm_request_irq() and devm_request_threaded_irq() automatically log
detailed error messages on failure. Remove the now-redundant
driver-specific dev_err() and dev_err_probe() calls.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
---
drivers/platform/x86/asus-tf103c-dock.c | 2 +-
drivers/platform/x86/intel/bxtwc_tmu.c | 5 +----
drivers/platform/x86/intel/bytcrc_pwrsrc.c | 2 +-
drivers/platform/x86/intel/crystal_cove_charger.c | 2 +-
drivers/platform/x86/intel/int0002_vgpio.c | 4 +---
drivers/platform/x86/intel/punit_ipc.c | 4 +---
6 files changed, 6 insertions(+), 13 deletions(-)
diff --git a/drivers/platform/x86/asus-tf103c-dock.c b/drivers/platform/x86/asus-tf103c-dock.c
index 92466477de9a..3be5b96de548 100644
--- a/drivers/platform/x86/asus-tf103c-dock.c
+++ b/drivers/platform/x86/asus-tf103c-dock.c
@@ -772,7 +772,7 @@ static int tf103c_dock_probe(struct i2c_client *client)
IRQF_TRIGGER_LOW | IRQF_ONESHOT | IRQF_NO_AUTOEN,
"dock_irq", dock);
if (ret)
- return dev_err_probe(dev, ret, "requesting dock IRQ");
+ return ret;
dock->hpd_gpio = devm_gpiod_get(dev, "dock_hpd", GPIOD_IN);
if (IS_ERR(dock->hpd_gpio))
diff --git a/drivers/platform/x86/intel/bxtwc_tmu.c b/drivers/platform/x86/intel/bxtwc_tmu.c
index b3666704d85b..73d7f71b2fd0 100644
--- a/drivers/platform/x86/intel/bxtwc_tmu.c
+++ b/drivers/platform/x86/intel/bxtwc_tmu.c
@@ -64,11 +64,8 @@ static int bxt_wcove_tmu_probe(struct platform_device *pdev)
ret = devm_request_threaded_irq(&pdev->dev, wctmu->irq,
NULL, bxt_wcove_tmu_irq_handler,
IRQF_ONESHOT, "bxt_wcove_tmu", wctmu);
- if (ret) {
- dev_err(&pdev->dev, "request irq failed: %d,virq: %d\n",
- ret, wctmu->irq);
+ if (ret)
return ret;
- }
/* Unmask TMU second level Wake & System alarm */
regmap_update_bits(wctmu->regmap, BXTWC_MTMUIRQ_REG,
diff --git a/drivers/platform/x86/intel/bytcrc_pwrsrc.c b/drivers/platform/x86/intel/bytcrc_pwrsrc.c
index 68ac040082df..1f39850b80fd 100644
--- a/drivers/platform/x86/intel/bytcrc_pwrsrc.c
+++ b/drivers/platform/x86/intel/bytcrc_pwrsrc.c
@@ -221,7 +221,7 @@ static int crc_pwrsrc_probe(struct platform_device *pdev)
crc_pwrsrc_irq_handler,
IRQF_ONESHOT, KBUILD_MODNAME, data);
if (ret)
- return dev_err_probe(dev, ret, "requesting IRQ\n");
+ return ret;
}
data->debug_dentry = debugfs_create_dir(KBUILD_MODNAME, NULL);
diff --git a/drivers/platform/x86/intel/crystal_cove_charger.c b/drivers/platform/x86/intel/crystal_cove_charger.c
index e4299cfa2205..425c7eb32442 100644
--- a/drivers/platform/x86/intel/crystal_cove_charger.c
+++ b/drivers/platform/x86/intel/crystal_cove_charger.c
@@ -135,7 +135,7 @@ static int crystal_cove_charger_probe(struct platform_device *pdev)
crystal_cove_charger_irq,
IRQF_ONESHOT, KBUILD_MODNAME, charger);
if (ret)
- return dev_err_probe(&pdev->dev, ret, "requesting irq\n");
+ return ret;
return 0;
}
diff --git a/drivers/platform/x86/intel/int0002_vgpio.c b/drivers/platform/x86/intel/int0002_vgpio.c
index 562e88025643..96b36cfcd9e4 100644
--- a/drivers/platform/x86/intel/int0002_vgpio.c
+++ b/drivers/platform/x86/intel/int0002_vgpio.c
@@ -208,10 +208,8 @@ static int int0002_probe(struct platform_device *pdev)
*/
ret = devm_request_irq(dev, irq, int0002_irq, IRQF_SHARED, "INT0002",
chip);
- if (ret) {
- dev_err(dev, "Error requesting IRQ %d: %d\n", irq, ret);
+ if (ret)
return ret;
- }
girq = &chip->irq;
gpio_irq_chip_set_chip(girq, &int0002_irqchip);
diff --git a/drivers/platform/x86/intel/punit_ipc.c b/drivers/platform/x86/intel/punit_ipc.c
index 6d770b950dfb..a3d2b0b64135 100644
--- a/drivers/platform/x86/intel/punit_ipc.c
+++ b/drivers/platform/x86/intel/punit_ipc.c
@@ -250,10 +250,8 @@ static int intel_punit_ipc_probe(struct platform_device *pdev)
ret = devm_request_irq(&pdev->dev, irq, intel_punit_ioc,
IRQF_NO_SUSPEND, "intel_punit_ipc",
punit_ipcdev);
- if (ret) {
- dev_err(&pdev->dev, "Failed to request irq: %d\n", irq);
+ if (ret)
return ret;
- }
punit_ipcdev->irq = irq;
}
--
2.34.1
^ permalink raw reply [flat|nested] 10+ messages in thread