PCI: Fix CONFIG_PCI_DYNAMIC_OF_NODES kconfig dependencies
authorLizhi Hou <lizhi.hou@amd.com>
Thu, 31 Aug 2023 18:19:07 +0000 (11:19 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 5 Sep 2023 17:42:28 +0000 (12:42 -0500)
commit26641b3f22abe3f03bd8e078c116cc98de740f43
treef8ff004798da47d62a024624d6dcc8d743e3cdd6
parentb6f6167ea8a424d14b41c172fe7a5f49e164f221
PCI: Fix CONFIG_PCI_DYNAMIC_OF_NODES kconfig dependencies

Generating interrupt-map property depends on of_irq_parse_raw() which
is enabled by CONFIG_OF_IRQ. Change CONFIG_PCI_DYNAMIC_OF_NODES
dependency from CONFIG_OF to CONFIG_OF_IRQ.

Closes: https://lore.kernel.org/linux-devicetree/2187619d-55bc-41bb-bbb4-6059399db997@roeck-us.net/
Fixes: 407d1a51921e ("PCI: Create device tree node for bridge")
Link: https://lore.kernel.org/r/1693505947-29786-1-git-send-email-lizhi.hou@amd.com
Reported-by: Guenter Roeck <groeck7@gmail.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/Kconfig