From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760520AbYESXVO (ORCPT ); Mon, 19 May 2008 19:21:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752989AbYESXVA (ORCPT ); Mon, 19 May 2008 19:21:00 -0400 Received: from smtpq2.groni1.gr.home.nl ([213.51.130.201]:48783 "EHLO smtpq2.groni1.gr.home.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751187AbYESXVA (ORCPT ); Mon, 19 May 2008 19:21:00 -0400 Message-ID: <4831F8BC.3080405@keyaccess.nl> Date: Tue, 20 May 2008 00:01:32 +0200 From: Rene Herman User-Agent: Thunderbird 2.0.0.14 (X11/20080421) MIME-Version: 1.0 To: Bjorn Helgaas CC: Len Brown , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Adam Belay , Adam M Belay , Li Shaohua , Matthieu Castet , Thomas Renninger , Jaroslav Kysela , Andrew Morton Subject: Re: [patch 3/8] PNP: remove pnp_resource.index References: <20080505223630.682082986@ldl.fc.hp.com> <20080505223959.374741576@ldl.fc.hp.com> In-Reply-To: <20080505223959.374741576@ldl.fc.hp.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 (-) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06-05-08 00:36, Bjorn Helgaas wrote: > 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 > - pnp_res = pnp_add_io_resource(dev, start, end, > - 0); > - if (pnp_res) > - pnp_res->index = nport++; > + pnp_add_io_resource(dev, start, end, 0); In the tree after your v2 series, pnp_add_foo_resource() are called as void functions yet still return a struct pnp_resource *. You might have other plans but if not, I guess they can _be_ void functions? Otherwise: Acked-by: Rene Herman Rene.