diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2006-03-28 17:04:00 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-04-01 21:48:08 -0500 |
commit | e4513a57ef719d3d6d1cee0ca4d9f4016aa452bb (patch) | |
tree | e4b837a10ada6c1d8ecfb065cb864c556a4641ce /include/asm-v850/flat.h | |
parent | 578b333bfe8eb1360207a08a53c321822a8f40f3 (diff) |
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 <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/asm-v850/flat.h')
0 files changed, 0 insertions, 0 deletions