]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:56:21 +0000 (11:56 +0200)
commitc4415dec3b6bd13e0b4cdf82c5f6c7ce8a0c2cd4
treea081711756ddfb7b26726e6c7354ddbd9066c9f2
parent31742f46dd25b0d844b554deca9b66a64462529a
net:mcf8390: Use platform_get_irq() to get the interrupt

BugLink: https://bugs.launchpad.net/bugs/1969110
[ 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>
(cherry picked from commit 13b570f365b89fa2fd7840b92a4d5e924f26caec)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/8390/mcf8390.c