diff options
author | Minghao Chi (CGEL ZTE) <chi.minghao@zte.com.cn> | 2022-03-08 09:43:09 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-09 15:14:30 +0300 |
commit | 2a760554dcba450d3ad61b32375b50ed6d59a87c (patch) | |
tree | 9b9017bb86def4209cda900fa1dcce892ba04885 /drivers/net/bonding | |
parent | 6babfc6e6fab068018c36e8f6605184b8c0b349d (diff) | |
download | linux-2a760554dcba450d3ad61b32375b50ed6d59a87c.tar.xz |
net:mcf8390: Use platform_get_irq() to get the interrupt
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>
Diffstat (limited to 'drivers/net/bonding')
0 files changed, 0 insertions, 0 deletions