]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit44e2c641d95404f2109077e5fdab9182ccbf5b18
tree68cb3b94c29a75039040d83531b132b6cfdbcdf4
parent028c12fe572c1286919e339b39eaef35b2836cc0
PNPACPI: Simplify disabled resource registration

The attached patch simplifies 96e7049df40b7263b5cfaea0039c96d23dd8332d.  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