Use platform_get_irq_byname_optional() instead of platform_get_irq_byname() to avoid below error message during probe: [3.265115] bcm_iproc 68c70200.spi: IRQ spi_lr_fullness_reached not found [3.272121] bcm_iproc 68c70200.spi: IRQ spi_lr_session_aborted not found [3.284965] bcm_iproc 68c70200.spi: IRQ spi_lr_impatient not found [3.291344] bcm_iproc 68c70200.spi: IRQ spi_lr_session_done not found [3.297992] bcm_iproc 68c70200.spi: IRQ mspi_done not found [3.303742] bcm_iproc 68c70200.spi: IRQ mspi_halted not found
Unified · Split
| @@ -1293,7 +1293,7 @@ int bcm_qspi_probe(struct platform_device *pdev, · 1292 unmodified lines | |||
| 1293 | name = qspi_irq_tab[val].irq_name; | 1293 | name = qspi_irq_tab[val].irq_name; |
| 1294 | if (qspi_irq_tab[val].irq_source == SINGLE_L2) { | 1294 | if (qspi_irq_tab[val].irq_source == SINGLE_L2) { |
| 1295 | /* get the l2 interrupts */ | 1295 | /* get the l2 interrupts */ |
| 1296 | irq = platform_get_irq_byname(pdev, name); | 1296 | irq = platform_get_irq_byname_optional(pdev, name); |
| 1297 | } else if (!num_ints && soc_intc) { | 1297 | } else if (!num_ints && soc_intc) { |
| 1298 | /* all mspi, bspi intrs muxed to one L1 intr */ | 1298 | /* all mspi, bspi intrs muxed to one L1 intr */ |
| 1299 | irq = platform_get_irq(pdev, 0); | 1299 | irq = platform_get_irq(pdev, 0); |