firmware-utils: bump to git HEAD
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0336-drm-v3d-The-third-IRQ-is-optional.patch
1 From 92f17eecf263f3705a6e1a4f27ecb273ed3a33e5 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Thu, 14 Nov 2019 12:00:43 +0000
4 Subject: [PATCH] drm/v3d: The third IRQ is optional
5
6 As of 5.4, the kernel logs errors for absent IRQs unless requested
7 with platform_get_irq_optional.
8
9 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
10 ---
11 drivers/net/ethernet/broadcom/genet/bcmgenet.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14 --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
15 +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
16 @@ -3476,7 +3476,7 @@ static int bcmgenet_probe(struct platfor
17 priv = netdev_priv(dev);
18 priv->irq0 = platform_get_irq(pdev, 0);
19 priv->irq1 = platform_get_irq(pdev, 1);
20 - priv->wol_irq = platform_get_irq(pdev, 2);
21 + priv->wol_irq = platform_get_irq_optional(pdev, 2);
22 if (!priv->irq0 || !priv->irq1) {
23 dev_err(&pdev->dev, "can't find IRQs\n");
24 err = -EINVAL;