]> err.no Git - linux-2.6/commit
ACPI: make acpi_bus_register_driver() return success/failure, not device count
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Tue, 28 Mar 2006 22:04:00 +0000 (17:04 -0500)
committerLen Brown <len.brown@intel.com>
Sun, 2 Apr 2006 02:42:57 +0000 (21:42 -0500)
commit9d9f749b316ac21cb59ad3e595cbce469b409e1a
treea7075d54e97fc67f72684a5e280adcb24c4666b8
parent683aa4012f53b2ada0f430487e05d37b0d94e90a
ACPI: make acpi_bus_register_driver() return success/failure, not device count

acpi_bus_register_driver() should not return the number of devices claimed.
We're not asking to find devices, we're making a driver available to devices,
including hot-pluggable devices that may appear in the future.

I audited all callers of acpi_bus_register_driver(), and except asus_acpi.c
and sonypi.c (fixed in previous patches), all either ignore the return value
or test only for failure (<0).

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/scan.c