Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751692AbWCNGN7 (ORCPT ); Tue, 14 Mar 2006 01:13:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751795AbWCNGN7 (ORCPT ); Tue, 14 Mar 2006 01:13:59 -0500 Received: from HELIOUS.MIT.EDU ([18.248.3.87]:9171 "EHLO neo.rr.com") by vger.kernel.org with ESMTP id S1751692AbWCNGN7 (ORCPT ); Tue, 14 Mar 2006 01:13:59 -0500 Date: Tue, 14 Mar 2006 01:19:39 -0500 From: Adam Belay To: Bjorn Helgaas , Andrew Morton Cc: linux-kernel@vger.kernel.org, Jaroslav Kysela , Matthieu Castet , Li Shaohua Subject: Re: [PATCH 0/9] PNP: adjust pnp_register_driver signature Message-ID: <20060314061938.GB22354@neo.rr.com> Mail-Followup-To: Adam Belay , Bjorn Helgaas , Andrew Morton , linux-kernel@vger.kernel.org, Jaroslav Kysela , Matthieu Castet , Li Shaohua References: <200603021601.27467.bjorn.helgaas@hp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200603021601.27467.bjorn.helgaas@hp.com> User-Agent: Mutt/1.5.11+cvs20060126 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 991 Lines: 23 On Thu, Mar 02, 2006 at 04:01:27PM -0700, Bjorn Helgaas wrote: > This series of patches removes the assumption that pnp_register_driver() > returns the number of devices claimed. Returning the count is unreliable > because devices may be hot-plugged in the future. (Many devices don't > support hot-plug, of course, but PNP in general does.) > > This changes the convention to "zero for success, or a negative error > value," which matches pci_register_driver(), acpi_bus_register_driver(), > and platform_driver_register(). > > If drivers need to know the number of devices, they can count calls > to their .probe() methods. Andrew, I'd appreciate if you add this to mainline when it's convenient to make non-critical changes. Thanks, Adam - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/