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

Use platform_get_irq_byname_optional() and platform_get_irq_optional()
instead of platform_get_irq_byname() and platform_get_irq() for optional
IRQs to avoid below error message during probe:

[    0.795803] fec 30be0000.ethernet: IRQ pps not found
[    0.800787] fec 30be0000.ethernet: IRQ index 3 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_ptp.c