From: Bjorn Helgaas Date: Fri, 27 Jun 2008 22:56:53 +0000 (-0600) Subject: PNP: remove pnp_resource.index X-Git-Tag: v2.6.27-rc1~1050^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87e4acf3ebc02c9d0a2f7a37b655c49176c4d765;p=pandora-kernel.git PNP: remove pnp_resource.index We used pnp_resource.index to keep track of which ISAPNP configuration register a resource should be written to. We needed this only to handle the case where a register is disabled but a subsequent register in the same set is enabled. Rather than explicitly maintaining the pnp_resource.index, this patch adds a resource every time we read an ISAPNP configuration register and marks the resource as IORESOURCE_DISABLED when appropriate. This makes the position in the pnp_resource_table always correspond to the config register index. Signed-off-by: Bjorn Helgaas Signed-off-by: Len Brown Signed-off-by: Andi Kleen --- Reading git-diff-tree failed