Skip to contentSkip to conversation

irqchip: Remove redundant dev_err()/dev_err_probe()

PATCH Applied Pan Chuang 3 participants 3 messages Jul 14 – Jul 15 irqchip drivers

lore
Share & tools
lore

Pan Chuang

author
#0 lore raw

PATCH 1/1 irqchip: Remove redundant dev_err()/dev_err_probe()

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() and dev_err_probe() calls.

---
 drivers/irqchip/irq-qcom-mpm.c      | 4 +---
 drivers/irqchip/irq-renesas-rzt2h.c | 2 +-
 drivers/irqchip/irq-renesas-rzv2h.c | 4 ++--
 3 files changed, 4 insertions(+), 6 deletions(-)
drivers/irqchip/irq-qcom-mpm.c +1 -3
index 181320528a47..8c575d7ce8a1 100644
@@ -464,10 +464,8 @@ static int qcom_mpm_probe(struct platform_device *pdev, struct device_node *pare
 
 	ret = devm_request_irq(dev, irq, qcom_mpm_handler, IRQF_NO_SUSPEND,
 			       "qcom_mpm", priv);
-	if (ret) {
-		dev_err(dev, "failed to request irq: %d\n", ret);
+	if (ret)
 		goto remove_domain;
-	}
 
 	return 0;
 
drivers/irqchip/irq-renesas-rzt2h.c +1 -1
index e06264add3cc..9086fc3a2043 100644
@@ -398,7 +398,7 @@ static int rzt2h_icu_request_irqs(struct platform_device *pdev, struct irq_domai
 		ret = devm_request_irq(dev, virq, handler, 0, dev_name(dev),
 				       data ?: (void *)(uintptr_t)offset);
 		if (ret)
-			return dev_err_probe(dev, ret, "Failed to request IRQ %u\n", offset);
+			return ret;
 	}
 
 	return 0;
drivers/irqchip/irq-renesas-rzv2h.c +2 -2
index 971ac83eee90..1a4703a353e9 100644
@@ -816,7 +816,7 @@ static int rzv2h_icu_setup_irqs(struct platform_device *pdev, struct irq_domain
 		ret = devm_request_irq(dev, virq, rzv2h_icu_swint_irq, 0, dev_name(dev),
 				       (void *)(uintptr_t)i);
 		if (ret)
-			return dev_err_probe(dev, ret, "Failed to request int-ca55-%u IRQ\n", i);
+			return ret;
 	}
 
 	/* Unmask and clear all IP/CA55 error interrupts */
@@ -844,7 +844,7 @@ static int rzv2h_icu_setup_irqs(struct platform_device *pdev, struct irq_domain
 
 	ret = devm_request_irq(dev, virq, rzv2h_icu_error_irq, 0, dev_name(dev), rzv2h_icu_data);
 	if (ret)
-		return dev_err_probe(dev, ret, "Failed to request icu-error-ca55 IRQ\n");
+		return ret;
 
 	return 0;
 }
Signature · 1 line
2.34.1
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 60 lines · 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() and dev_err_probe() calls.

---
 drivers/irqchip/irq-qcom-mpm.c      | 4 +---
 drivers/irqchip/irq-renesas-rzt2h.c | 2 +-
 drivers/irqchip/irq-renesas-rzv2h.c | 4 ++--

 3 files changed, 4 insertions(+), 6 deletions(-)
drivers/irqchip/irq-qcom-mpm.c +0 -0
index 181320528a47..8c575d7ce8a1 100644
@@ -464,10 +464,8 @@ static int qcom_mpm_probe(struct platform_device *pdev, struct device_node *pare


  ret = devm_request_irq(dev, irq, qcom_mpm_handler, IRQF_NO_SUSPEND, "qcom_mpm", priv);

drivers/irqchip/irq-qcom-mpm.c +1 -2
-	if (ret) {
-		dev_err(dev, "failed to request irq: %d\n", ret);
+	if (ret)

  goto remove_domain;

drivers/irqchip/irq-qcom-mpm.c +0 -1
-	}


  return 0;

drivers/irqchip/irq-renesas-rzt2h.c +1 -1
index e06264add3cc..9086fc3a2043 100644
@@ -398,7 +398,7 @@ static int rzt2h_icu_request_irqs(struct platform_device *pdev, struct irq_domai
  		ret = devm_request_irq(dev, virq, handler, 0, dev_name(dev),
  				       data ?: (void *)(uintptr_t)offset);
  		if (ret)
-			return dev_err_probe(dev, ret, "Failed to request IRQ %u\n", offset);
+			return ret;
  	}


  return 0;

drivers/irqchip/irq-renesas-rzv2h.c +1 -1
index 971ac83eee90..1a4703a353e9 100644
@@ -816,7 +816,7 @@ static int rzv2h_icu_setup_irqs(struct platform_device *pdev, struct irq_domain
  		ret = devm_request_irq(dev, virq, rzv2h_icu_swint_irq, 0, dev_name(dev),
  				       (void *)(uintptr_t)i);
  		if (ret)
-			return dev_err_probe(dev, ret, "Failed to request int-ca55-%u IRQ\n", i);
+			return ret;
  	}


  /* Unmask and clear all IP/CA55 error interrupts */

drivers/irqchip/irq-renesas-rzv2h.c +0 -0
@@ -844,7 +844,7 @@ static int rzv2h_icu_setup_irqs(struct platform_device *pdev, struct irq_domain


  ret = devm_request_irq(dev, virq, rzv2h_icu_error_irq, 0, dev_name(dev), rzv2h_icu_data); if (ret)

drivers/irqchip/irq-renesas-rzv2h.c +1 -1
-		return dev_err_probe(dev, ret, "Failed to request icu-error-ca55 IRQ\n");
+		return ret;
Quoted 3 lines


  return 0;
 }

merge bot Applied
#2 lore raw
In reply to Pan Chuang
The following commit has been merged into the irq/drivers branch of tip:

The following commit has been merged into the irq/drivers branch of tip:

Commit-ID:     9023960b74ab32bef73273cfb5bff3b0b70d5ef8
Gitweb:        https://git.kernel.org/tip/9023960b74ab32bef73273cfb5bff3b0b70d5ef8
Author:        Pan Chuang <[email protected]>
AuthorDate:    Tue, 14 Jul 2026 21:13:30 +08:00
Committer:     Thomas Gleixner <[email protected]>
CommitterDate: Wed, 15 Jul 2026 08:40:22 +02:00

irqchip: Remove redundant dev_err()/dev_err_probe()

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() and dev_err_probe() calls.

---
 drivers/irqchip/irq-qcom-mpm.c      | 4 +---
 drivers/irqchip/irq-renesas-rzt2h.c | 2 +-
 drivers/irqchip/irq-renesas-rzv2h.c | 4 ++--
 3 files changed, 4 insertions(+), 6 deletions(-)
drivers/irqchip/irq-qcom-mpm.c +1 -3
index 1813205..8c575d7 100644
@@ -464,10 +464,8 @@ static int qcom_mpm_probe(struct platform_device *pdev, struct device_node *pare
 
 	ret = devm_request_irq(dev, irq, qcom_mpm_handler, IRQF_NO_SUSPEND,
 			       "qcom_mpm", priv);
-	if (ret) {
-		dev_err(dev, "failed to request irq: %d\n", ret);
+	if (ret)
 		goto remove_domain;
-	}
 
 	return 0;
 
drivers/irqchip/irq-renesas-rzt2h.c +1 -1
index e06264a..9086fc3 100644
@@ -398,7 +398,7 @@ static int rzt2h_icu_request_irqs(struct platform_device *pdev, struct irq_domai
 		ret = devm_request_irq(dev, virq, handler, 0, dev_name(dev),
 				       data ?: (void *)(uintptr_t)offset);
 		if (ret)
-			return dev_err_probe(dev, ret, "Failed to request IRQ %u\n", offset);
+			return ret;
 	}
 
 	return 0;
drivers/irqchip/irq-renesas-rzv2h.c +2 -2
index 971ac83..1a4703a 100644
@@ -816,7 +816,7 @@ static int rzv2h_icu_setup_irqs(struct platform_device *pdev, struct irq_domain 
 		ret = devm_request_irq(dev, virq, rzv2h_icu_swint_irq, 0, dev_name(dev),
 				       (void *)(uintptr_t)i);
 		if (ret)
-			return dev_err_probe(dev, ret, "Failed to request int-ca55-%u IRQ\n", i);
+			return ret;
 	}
 
 	/* Unmask and clear all IP/CA55 error interrupts */
@@ -844,7 +844,7 @@ static int rzv2h_icu_setup_irqs(struct platform_device *pdev, struct irq_domain 
 
 	ret = devm_request_irq(dev, virq, rzv2h_icu_error_irq, 0, dev_name(dev), rzv2h_icu_data);
 	if (ret)
-		return dev_err_probe(dev, ret, "Failed to request icu-error-ca55 IRQ\n");
+		return ret;
 
 	return 0;
 }