]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ata: sata_dwc_460ex: use platform_get_irq()
authorRosen Penev <rosenp@gmail.com>
Sun, 12 Jul 2026 21:37:25 +0000 (14:37 -0700)
committerDamien Le Moal <dlemoal@kernel.org>
Mon, 13 Jul 2026 05:32:11 +0000 (14:32 +0900)
commita4af122106f73ea510bb35a9ea1dedd980fc0db7
treeb77b8e3ba704c23290bf0b68632b1b514f8dfcc2
parent4bbc16a353a98023e5ddfca7c1fc0e49971cf4d0
ata: sata_dwc_460ex: use platform_get_irq()

Replace irq_of_parse_and_map() with platform_get_irq() in both
sata_dwc_dma_init_old() and sata_dwc_probe(). This is the preferred
way to obtain IRQs for platform devices and provides better error
reporting.  Remove the now-unnecessary #include <linux/of_irq.h>.

irq_of_parse_and_map() requires irq_dispose_mapping(), which is missing.

Also fix unused variable when CONFIG_SATA_DWC_OLD_DMA is disabled.

Fixes: 62936009f35a ("[libata] Add 460EX on-chip SATA driver, sata_dwc_460ex")
Assisted-by: opencode:big-pickle
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
drivers/ata/sata_dwc_460ex.c