PCI: microchip: Include <linux/irqdomain.h> explicitly
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 31 Oct 2022 15:39:51 +0000 (10:39 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 10 Nov 2022 20:53:41 +0000 (14:53 -0600)
pcie-microchip-host.c uses irq_domain_add_linear() and related interfaces,
so it needs <linux/irqdomain.h> but doesn't include it directly; it relies
on the fact that <linux/of_irq.h> includes it.

But pcie-microchip-host.c *doesn't* need <linux/of_irq.h> itself.  Include
<linux/irqdomain.h> directly to remove this implicit dependency so a future
patch can drop <linux/of_irq.h>.

Link: https://lore.kernel.org/r/20221031153954.1163623-3-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
drivers/pci/controller/pcie-microchip-host.c

index 7263d17..57b2a62 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <linux/clk.h>
 #include <linux/irqchip/chained_irq.h>
+#include <linux/irqdomain.h>
 #include <linux/module.h>
 #include <linux/msi.h>
 #include <linux/of_address.h>