Skip to content

Commit

Permalink
PNP: skip UNSET MEM resources as well as DISABLED ones
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Bjorn Helgaas authored and torvalds committed Jun 5, 2008
1 parent 6311c90 commit 5a515bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pnp/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5a515bc

Please sign in to comment.