]> git.baikalelectronics.ru Git - kernel.git/commit
pcmcia: Use platform_get_irq() to get the interrupt
authorMinghao Chi <chi.minghao@zte.com.cn>
Wed, 9 Mar 2022 05:37:32 +0000 (05:37 +0000)
committerDominik Brodowski <linux@dominikbrodowski.net>
Sat, 28 May 2022 07:25:31 +0000 (09:25 +0200)
commitae11ea44a72d147795c905ebf54eedea11869856
treeacf28f44a96587fdfd1c4528a8d406b863d9dcac
parente1196711ab7237cb67b6b8aa93b329fee71808df
pcmcia: 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 <chi.minghao@zte.com.cn>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/bcm63xx_pcmcia.c