aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMinghao Chi (CGEL ZTE) <[email protected]>2022-03-08 06:43:09 +0000
committerDavid S. Miller <[email protected]>2022-03-09 12:14:30 +0000
commit2a760554dcba450d3ad61b32375b50ed6d59a87c (patch)
tree9b9017bb86def4209cda900fa1dcce892ba04885 /lib
parent6babfc6e6fab068018c36e8f6605184b8c0b349d (diff)
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 <[email protected]> Signed-off-by: Minghao Chi (CGEL ZTE) <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions