From: Bjorn Helgaas Date: Mon, 28 Apr 2008 22:34:21 +0000 (-0600) Subject: PNP: check for conflicts with all resources, not just earlier ones X-Git-Tag: v2.6.26-rc1~101^2^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db9eaeab3e7ab72d773820820f1ba33960ad24c4;p=pandora-kernel.git PNP: check for conflicts with all resources, not just earlier ones This patch removes a use of "idx" in pnp_check_port() and similar functions, in preparation for replacing idx with a pointer to the resource itself. I split this out because it changes the behavior slightly: we used to check for conflicts only with earlier resources, e.g., we checked resource 2 against resources 0 and 1 but not against 3, 4, etc. Now we will check against all resources except 2. Since resources are assigned in ascending order, the old behavior was probably safe, but I don't like to depend on that ordering. Signed-off-by: Bjorn Helgaas Acked-By: Rene Herman Signed-off-by: Len Brown --- Reading git-diff-tree failed