From: Bjorn Helgaas Date: Thu, 5 Jun 2008 16:32:23 +0000 (-0600) Subject: PNP: skip UNSET MEM resources as well as DISABLED ones X-Git-Tag: v2.6.26-rc6~104 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5a515bcbea580a65ced92405b083299df9003748;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Linus Torvalds --- diff --git a/drivers/pnp/system.c b/drivers/pnp/system.c index 8f0a570509c..cf4e07b01d4 100644 --- a/drivers/pnp/system.c +++ b/drivers/pnp/system.c @@ -81,7 +81,7 @@ static void reserve_resources_of_dev(struct pnp_dev *dev) } for (i = 0; (res = pnp_get_resource(dev, IORESOURCE_MEM, i)); i++) { - if (res->flags & IORESOURCE_DISABLED) + if (res->flags & (IORESOURCE_UNSET | IORESOURCE_DISABLED)) continue; reserve_range(dev, res->start, res->end, 0);