From: Rafael J. Wysocki Date: Tue, 6 Aug 2013 23:19:23 +0000 (+0200) Subject: ACPI: Reduce acpi_bind_one()/acpi_unbind_one() code duplication X-Git-Tag: v3.12-rc1~178^2~11^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdbdbf91081250657d018fc66d7cd0c07f337070;p=pandora-kernel.git ACPI: Reduce acpi_bind_one()/acpi_unbind_one() code duplication Move some duplicated code from acpi_bind_one() and acpi_unbind_one() into a separate function and make that function use snprintf() instead of sprintf() for extra safety. Signed-off-by: Rafael J. Wysocki Acked-by: Toshi Kani Acked-by: Yasuaki Ishimatsu --- Reading git-diff-tree failed