From: Axel Lin Date: Tue, 20 Jul 2010 22:19:50 +0000 (-0700) Subject: toshiba_acpi: make remove_device() and add_device() void X-Git-Tag: v2.6.36-rc1~579^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bd1ca1f4ce99c5be041bfc2997e394cdb5240dc;p=pandora-kernel.git 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 Cc: Matthew Garrett Cc: Márton Németh Signed-off-by: Andrew Morton Signed-off-by: Matthew Garrett --- Reading git-diff-tree failed