diff options
author | Sinan Kaya <okaya@kernel.org> | 2018-12-20 01:46:58 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-12-20 12:19:49 +0300 |
commit | 43554cebba50e709b9207c55ceca6bc281748586 (patch) | |
tree | 6e34a98bf6e2c869210da4444c3b6f1cbd5bceb9 /lib/int_sqrt.c | |
parent | 52146173a0333a8c9fbc1a3dd92958f376511b38 (diff) | |
download | linux-43554cebba50e709b9207c55ceca6bc281748586.tar.xz |
ACPI/IORT: Stub out ACS functions when CONFIG_PCI is not set
Remove PCI dependent code out of iort.c when CONFIG_PCI is not defined.
A quick search reveals the following functions:
1. pci_request_acs()
2. pci_domain_nr()
3. pci_is_root_bus()
4. to_pci_dev()
Both pci_domain_nr() and pci_is_root_bus() are defined in linux/pci.h.
pci_domain_nr() is a stub function when CONFIG_PCI is not set and
pci_is_root_bus() just returns a reference to a structure member which
is still valid without CONFIG_PCI set.
to_pci_dev() is a macro that expands to container_of.
pci_request_acs() is the only code that gets pulled in from drivers/pci/*.c
Signed-off-by: Sinan Kaya <okaya@kernel.org>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'lib/int_sqrt.c')
0 files changed, 0 insertions, 0 deletions