PNPACPI: Simplify disabled resource registration
authorWitold Szczeponik <Witold.Szczeponik@gmx.net>
Thu, 27 Oct 2011 18:56:47 +0000 (20:56 +0200)
committerLen Brown <len.brown@intel.com>
Mon, 7 Nov 2011 01:13:55 +0000 (20:13 -0500)
commit18fd470a48396c8795ba7256c5973e92ffa25cb3
tree68cb3b94c29a75039040d83531b132b6cfdbcdf4
parentc3b92c8787367a8bb53d57d9789b558f1295cc96
PNPACPI: Simplify disabled resource registration

The attached patch simplifies 29df8d8f8702f0f53c1375015f09f04bc8d023c1.  As
the "pnp_xxx" structs are not designed to cope with IORESOURCE_DISABLED, and
hence no code can test for this value, setting this value is actually a "no op"
and can be skipped altogether.  It is sufficient to remove the checks for
"empty" resources and continue processing.

The patch is applied against 3.1.

Signed-off-by: Witold Szczeponik <Witold.Szczeponik@gmx.net>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/pnp/pnpacpi/rsparser.c