forked from luck/tmp_suning_uos_patched
PNP: Fix compile error in quirks.c
Fix the compile error:
drivers/pnp/quirks.c:393:2: error: implicit declaration of function 'pcibios_bus_to_resource'
that occurs when building with CONFIG_PCI unset. The quirk is only
relevent to Intel devices, so we could use "#if defined(CONFIG_X86) &&
defined(CONFIG_PCI)" instead, but testing CONFIG_X86 is not strictly
necessary.
Fixes: cb171f7abb
(PNP: Work around BIOS defects in Intel MCH area reporting)
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
d1db0eea85
commit
b3413afb4a
|
@ -335,7 +335,7 @@ static void quirk_amd_mmconfig_area(struct pnp_dev *dev)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_X86
|
#ifdef CONFIG_PCI
|
||||||
/* Device IDs of parts that have 32KB MCH space */
|
/* Device IDs of parts that have 32KB MCH space */
|
||||||
static const unsigned int mch_quirk_devices[] = {
|
static const unsigned int mch_quirk_devices[] = {
|
||||||
0x0154, /* Ivy Bridge */
|
0x0154, /* Ivy Bridge */
|
||||||
|
@ -440,7 +440,7 @@ static struct pnp_fixup pnp_fixups[] = {
|
||||||
#ifdef CONFIG_AMD_NB
|
#ifdef CONFIG_AMD_NB
|
||||||
{"PNP0c01", quirk_amd_mmconfig_area},
|
{"PNP0c01", quirk_amd_mmconfig_area},
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_X86
|
#ifdef CONFIG_PCI
|
||||||
{"PNP0c02", quirk_intel_mch},
|
{"PNP0c02", quirk_intel_mch},
|
||||||
#endif
|
#endif
|
||||||
{""}
|
{""}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user