PNP: skip UNSET MEM resources as well as DISABLED ones

We don't need to reserve "unset" resources. Trying to reserve
them results in messages like this, which are ugly but harmless:

system 00:08: iomem range 0x0-0x0 could not be reserved

Future PNP patches will remove use of IORESOURCE_UNSET, but
we still need it for now.

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

authored by Bjorn Helgaas and committed by Linus Torvalds 5a515bcb 6311c90a

+1 -1
+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_DISABLED) 84 + if (res->flags & (IORESOURCE_UNSET | IORESOURCE_DISABLED)) 85 85 continue; 86 86 87 87 reserve_range(dev, res->start, res->end, 0);