]> git.baikalelectronics.ru Git - kernel.git/commit
net: fec_main: Use platform_get_irq_byname_optional() to avoid error message
authorAnson Huang <Anson.Huang@nxp.com>
Tue, 29 Oct 2019 01:53:18 +0000 (09:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Oct 2019 00:57:16 +0000 (17:57 -0700)
commitac254497b1df8c4b469b24ea75d1cd755c407bc9
tree77bf02107818e35dc271130343f8c06369250a6e
parent19165d50907f87e1e7afd56d461e2cb4eb87f6be
net: fec_main: Use platform_get_irq_byname_optional() to avoid error message

Failed to get irq using name is NOT fatal as driver will use index
to get irq instead, use platform_get_irq_byname_optional() instead
of platform_get_irq_byname() to avoid below error message during
probe:

[    0.819312] fec 30be0000.ethernet: IRQ int0 not found
[    0.824433] fec 30be0000.ethernet: IRQ int1 not found
[    0.829539] fec 30be0000.ethernet: IRQ int2 not found

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c