mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set
We are compiling PCI code today for systems with ACPI and no PCI device present. Remove the useless code and reduce the tight dependency. Signed-off-by: Sinan Kaya <[email protected]> Acked-by: Bjorn Helgaas <[email protected]> # PCI parts Acked-by: Ingo Molnar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
bd23fac3ea
commit
5d32a66541
8 changed files with 32 additions and 3 deletions
|
|
@ -88,7 +88,14 @@ int acpi_pci_link_free_irq(acpi_handle handle);
|
|||
|
||||
struct pci_bus;
|
||||
|
||||
#ifdef CONFIG_PCI
|
||||
struct pci_dev *acpi_get_pci_dev(acpi_handle);
|
||||
#else
|
||||
static inline struct pci_dev *acpi_get_pci_dev(acpi_handle handle)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Arch-defined function to add a bus to the system */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue