PNP: mark resources that conflict with PCI devices "disabled"

Both the PNP/PCI conflict detection quirk and the PNP system
driver must use the same mechanism to mark resources as disabled.

I think it's best to keep the resource and to keep the type bit
(IORESOURCE_MEM, etc), so that we match the list from firmware
as closely as possible.

Fixes this regression from 2.6.25: http://lkml.org/lkml/2008/6/1/82

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Tested-by: Avuton Olrich <avuton@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Bjorn Helgaas and committed by Linus Torvalds 4b34fe15 c3b25b32

+2 -2
+1 -1
drivers/pnp/quirks.c
··· 286 286 pci_name(pdev), i, 287 287 (unsigned long long) pci_start, 288 288 (unsigned long long) pci_end); 289 - res->flags = 0; 289 + res->flags |= IORESOURCE_DISABLED; 290 290 } 291 291 } 292 292 }
+1 -1
drivers/pnp/system.c
··· 81 81 } 82 82 83 83 for (i = 0; (res = pnp_get_resource(dev, IORESOURCE_MEM, i)); i++) { 84 - if (res->flags & IORESOURCE_UNSET) 84 + if (res->flags & IORESOURCE_DISABLED) 85 85 continue; 86 86 87 87 reserve_range(dev, res->start, res->end, 0);