From: Graeme Gregory graeme.gregory@linaro.org
Not all platforms with ACPI have PCI so only try and call pci based functions when CONFIG_PCI is set.
Signed-off-by: Graeme Gregory graeme.gregory@linaro.org --- drivers/pnp/pnpacpi/rsparser.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/pnp/pnpacpi/rsparser.c b/drivers/pnp/pnpacpi/rsparser.c index b8f4ea7..464f8c9 100644 --- a/drivers/pnp/pnpacpi/rsparser.c +++ b/drivers/pnp/pnpacpi/rsparser.c @@ -113,8 +113,10 @@ static int dma_flags(struct pnp_dev *dev, int type, int bus_master,
static void pnpacpi_add_irqresource(struct pnp_dev *dev, struct resource *r) { +#ifdef CONFIG_PCI if (!(r->flags & IORESOURCE_DISABLED)) pcibios_penalize_isa_irq(r->start, 1); +#endif
pnp_add_resource(dev, r); }