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)
commit5b1f0e62941b8b307c589c586928a28718e934ef
tree7f0bb96badae47f11f939f745cae02cb5a81d2dd
parent2eea1fa82f681b484acb8e5a0d213b64a5c5574c
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