]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net:mcf8390: Use platform_get_irq() to get the interrupt
authorMinghao Chi (CGEL ZTE) <chi.minghao@zte.com.cn>
Tue, 8 Mar 2022 06:43:09 +0000 (06:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Apr 2022 12:14:37 +0000 (14:14 +0200)
commit615a68f21933d1dabea7a69522a285fa824c5bd0
tree6c5edb2318a11932134e1bf3e1c37dfe71e2f2ec
parent03b8500809f5f3f789393266c0ec5a930a42a121
net:mcf8390: Use platform_get_irq() to get the interrupt

[ Upstream commit 2a760554dcba450d3ad61b32375b50ed6d59a87c ]

It is not recommened to use platform_get_resource(pdev, IORESOURCE_IRQ)
for requesting IRQ's resources any more, as they can be not ready yet in
case of DT-booting.

platform_get_irq() instead is a recommended way for getting IRQ even if
it was not retrieved earlier.

It also makes code simpler because we're getting "int" value right away
and no conversion from resource to int is required.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi (CGEL ZTE) <chi.minghao@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/8390/mcf8390.c