From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karol Kozimor Subject: Re: [PATCH] return number of devices claimed from acpi_bus_register_driver() Date: Fri, 30 Jul 2004 19:17:34 +0200 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20040730171734.GA29979@hell.org.pl> References: <200407291209.28801.bjorn.helgaas@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Return-path: Content-Disposition: inline In-Reply-To: <200407291209.28801.bjorn.helgaas-VXdhtT5mjnY@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Bjorn Helgaas Cc: Len Brown , acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org Thus wrote Bjorn Helgaas: > pnp_register_driver() and pci_register_driver() return the number of > devices claimed by the driver. This makes acpi_bus_register_driver() > do the same. > > All existing callers of acpi_bus_register_driver() either ignore the > return value or check only for negative (error) return values. I'd like to see that (or something similar) in if possible. The current behaviour of acpi_bus_register_driver() does not allow for a clean solution to back off in case no devices are claimed, thus most acpi drivers will properly load even if there's no matching hardware available. Best regards, -- Karol 'sziwan' Kozimor sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com