linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI: brcmstb: Remove irq handler and data in one go
@ 2020-11-08 18:42 Martin Kaiser
  2020-11-09  2:00 ` Florian Fainelli
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Martin Kaiser @ 2020-11-08 18:42 UTC (permalink / raw)
  To: Nicolas Saenz Julienne, Lorenzo Pieralisi, Bjorn Helgaas,
	Florian Fainelli
  Cc: bcm-kernel-feedback-list, linux-rpi-kernel, linux-pci,
	linux-kernel, Martin Kaiser

Replace the two separate calls for removing the irq handler and data with a
single irq_set_chained_handler_and_data() call.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
---
 drivers/pci/controller/pcie-brcmstb.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/pci/controller/pcie-brcmstb.c b/drivers/pci/controller/pcie-brcmstb.c
index bea86899bd5d..7c666f4deb47 100644
--- a/drivers/pci/controller/pcie-brcmstb.c
+++ b/drivers/pci/controller/pcie-brcmstb.c
@@ -606,8 +606,7 @@ static void brcm_msi_remove(struct brcm_pcie *pcie)
 
 	if (!msi)
 		return;
-	irq_set_chained_handler(msi->irq, NULL);
-	irq_set_handler_data(msi->irq, NULL);
+	irq_set_chained_handler_and_data(msi->irq, NULL, NULL);
 	brcm_free_domains(msi);
 }
 
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-01-19 13:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-08 18:42 [PATCH] PCI: brcmstb: Remove irq handler and data in one go Martin Kaiser
2020-11-09  2:00 ` Florian Fainelli
2020-11-11 21:53 ` [PATCH v2] PCI: brcmstb: Fix race in removing chained IRQ handler Martin Kaiser
2020-11-12  9:07   ` Nicolas Saenz Julienne
2020-11-12 22:03 ` [PATCH v3] PCI: brcmstb: remove chained IRQ handler and data in one go Martin Kaiser
2021-01-15 21:15 ` [PATCH v4] PCI: brcmstb: Remove " Martin Kaiser
2021-01-19 12:24   ` Lorenzo Pieralisi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).