Thread (6 messages) 6 messages, 2 authors, 2022-03-01

Re: [PATCH] thermal: brcmstb_thermal: Interrupt is optional

From: Daniel Lezcano <hidden>
Date: 2021-09-17 07:51:15
Also in: linux-arm-kernel, lkml

Applied, thanks

On 16/09/2021 02:05, Florian Fainelli wrote:

On 4/26/2021 2:36 PM, Florian Fainelli wrote:
quoted
Utilize platform_get_irq_optional() to silence these messages:

brcmstb_thermal a581500.thermal: IRQ index 0 not found

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
This patch was never picked up and still applies. Daniel, can you pick
it up?

Thanks!
quoted
---
  drivers/thermal/broadcom/brcmstb_thermal.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thermal/broadcom/brcmstb_thermal.c
b/drivers/thermal/broadcom/brcmstb_thermal.c
index 8df5edef1ded..0cedb8b4f00a 100644
--- a/drivers/thermal/broadcom/brcmstb_thermal.c
+++ b/drivers/thermal/broadcom/brcmstb_thermal.c
@@ -351,7 +351,7 @@ static int brcmstb_thermal_probe(struct
platform_device *pdev)
        priv->thermal = thermal;
  -    irq = platform_get_irq(pdev, 0);
+    irq = platform_get_irq_optional(pdev, 0);
      if (irq >= 0) {
          ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
                          brcmstb_tmon_irq_thread,

-- 
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help