mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 22:54:05 +08:00
thermal/drivers/brcmstb_thermal: Interrupt is optional
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> Link: https://lore.kernel.org/r/20220301181412.2008044-1-f.fainelli@gmail.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
This commit is contained in:
parent
1a7c9213d5
commit
7eab0b9d48
@ -351,7 +351,7 @@ static int brcmstb_thermal_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
priv->thermal = thermal;
|
priv->thermal = thermal;
|
||||||
|
|
||||||
irq = platform_get_irq(pdev, 0);
|
irq = platform_get_irq_optional(pdev, 0);
|
||||||
if (irq >= 0) {
|
if (irq >= 0) {
|
||||||
ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
|
ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
|
||||||
brcmstb_tmon_irq_thread,
|
brcmstb_tmon_irq_thread,
|
||||||
|
Loading…
Reference in New Issue
Block a user