]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86: mlx-platform: Add dependency on PCI to Kconfig
authorVadim Pasternak <vadimp@nvidia.com>
Tue, 29 Aug 2023 13:37:48 +0000 (13:37 +0000)
committerHans de Goede <hdegoede@redhat.com>
Wed, 30 Aug 2023 13:13:41 +0000 (15:13 +0200)
commit06469a8dc37598176937dac1f6ca41e8f0db2b81
tree25d51bddf1e7e64ad07e100ca7aeff1c1945118f
parentecaa1867b5243cf99e6ce9b46e372a66bd7cbfa2
platform/x86: mlx-platform: Add dependency on PCI to Kconfig

Add dependency on PCI to avoid 'mlx-platform' compilation error in case
CONFIG_PCI is not set.

Failed on i386:
CONFIG_ACPI=y
CONFIG_ISA=y

Error In function 'mlxplat_pci_fpga_device_init':
implicit declaration of function 'pci_request_region':
 6204 |         err = pci_request_region(pci_dev, 0, res_name);
      |               ^~~~~~~~~~~~~~~~~~
      |               pci_request_regions

Fixes: 1316e0af2dc0 ("platform: mellanox: mlx-platform: Introduce ACPI init flow")
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Michael Shych <michaelsh@nvidia.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20230829133748.58208-2-vadimp@nvidia.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/Kconfig