]> git.baikalelectronics.ru Git - kernel.git/commit
toshiba_acpi: make remove_device() and add_device() void
authorAxel Lin <axel.lin@gmail.com>
Tue, 20 Jul 2010 22:19:50 +0000 (15:19 -0700)
committerMatthew Garrett <mjg@redhat.com>
Tue, 3 Aug 2010 13:49:02 +0000 (09:49 -0400)
commitc24375f6ffe46c0e87431156b0cec02a7e42069d
tree2c0f2338f251a4057da3ceb3db30eabe58bde2d9
parente5197906579e6e3b3b234512969a8fa18908cfed
toshiba_acpi: make remove_device() and add_device() void

remove_device() and add_device() are not related to ACPI APIs, it does not
make sense to return acpi_status for both functions.

Current implementation of add_device() always AE_OK, thus the return value
checking for add_device() always return false for ACPI_FAILURE(status).
This patch makes add_device() to be void and remove the unnecessary return
value checking.

remove_proc_entry() won't fail, thus change remove_device() to be void.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Márton Németh <nm127@freemail.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/toshiba_acpi.c