From: Bjorn Helgaas Date: Tue, 28 Mar 2006 22:04:00 +0000 (-0500) Subject: ACPI: fix sonypi ACPI driver registration to unregister on failure X-Git-Tag: v2.6.18-rc1~1081^2~19^2~10^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4513a57ef719d3d6d1cee0ca4d9f4016aa452bb;p=pandora-kernel.git ACPI: fix sonypi ACPI driver registration to unregister on failure Remove the assumption that acpi_bus_register_driver() returns the number of devices claimed. Returning the count is unreliable because devices may be hot-plugged in the future (admittedly not applicable for this driver). This also fixes a bug: if sonypi_acpi_driver was registered but found no devices, sonypi_exit() did not unregister it. Signed-off-by: Bjorn Helgaas Signed-off-by: Andrew Morton Signed-off-by: Len Brown --- Reading git-diff-tree failed