OSDN Git Service

ACPI: Replace irqdomain.h include with struct declarations
authorRob Herring <robh@kernel.org>
Wed, 5 Apr 2023 20:27:24 +0000 (15:27 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 6 Apr 2023 18:36:27 +0000 (20:36 +0200)
commit45166620b7254a9e9329a2b6cdfa369bc3ca9c5b
treed09a295e7c91b2d0cd8b444f0d9737a0af18f6ef
parent2febc5dda35e519886140e62780211a10ebeb463
ACPI: Replace irqdomain.h include with struct declarations

linux/acpi.h includes irqdomain.h which includes of.h. Break the include
chain by replacing the irqdomain include with forward declarations for
struct irq_domain and irq_domain_ops which is sufficient for acpi.h.

of.h also includes mod_devicetable.h which many drivers implicitly
depend on. As acpi.h already includes it, just move it out of the
'#ifdef CONFIG_ACPI'.

Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/acpi.h