From: Bjorn Helgaas Date: Tue, 28 Mar 2006 22:04:00 +0000 (-0500) Subject: ACPI: make acpi_bus_register_driver() return success/failure, not device count X-Git-Tag: v2.6.18-rc1~1081^2~19^2~10^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d9f749b316ac21cb59ad3e595cbce469b409e1a;p=pandora-kernel.git 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 Signed-off-by: Andrew Morton Signed-off-by: Len Brown --- Reading git-diff-tree failed