platform/x86: wmi: Clean up acpi_wmi_add
authorAndy Lutomirski <luto@kernel.org>
Wed, 25 Nov 2015 03:54:46 +0000 (19:54 -0800)
committerDarren Hart (VMware) <dvhart@infradead.org>
Tue, 6 Jun 2017 17:15:17 +0000 (10:15 -0700)
commit46492ee4a6ca82e878218059c0f8539c8f9ac14e
treefd12e0f14dccdbf494a65a74a3ce2ddbd5a14744
parent7f5809bf6e2e43953e48e86cb039736a6448e070
platform/x86: wmi: Clean up acpi_wmi_add

Rearrange acpi_wmi_add to use Linux's error handling conventions.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Mario Limonciello <mario_limonciello@dell.com>
Cc: Pali Rohár <pali.rohar@gmail.com>
Cc: linux-kernel@vger.kernel.org
Cc: platform-driver-x86@vger.kernel.org
Cc: linux-acpi@vger.kernel.org
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/wmi.c