]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: Avoid touching non-existent interrupt
authorStefan Wahren <wahrenst@gmx.net>
Mon, 11 Nov 2019 19:49:20 +0000 (20:49 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Nov 2019 04:07:59 +0000 (20:07 -0800)
commitbf21da15a22140b96a3e1678fc89b54ca6bcd600
tree7f0bb96badae47f11f939f745cae02cb5a81d2dd
parentc81c8e10d33d1792e5d9c93b93f9f1210cb75b6d
net: bcmgenet: Avoid touching non-existent interrupt

As platform_get_irq() now prints an error when the interrupt does not
exist, we are getting a confusing error message in case the optional
WOL IRQ is not defined:

  bcmgenet fd58000.ethernet: IRQ index 2 not found

Fix this by using the platform_get_irq_optional().

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c