]> git.karo-electronics.de Git - karo-tx-linux.git/commit
platform/x86: toshiba_haps: Split ACPI and HDD protection error handling
authorAzael Avalos <coproscefalo@gmail.com>
Wed, 7 Sep 2016 15:28:13 +0000 (09:28 -0600)
committerDarren Hart <dvhart@linux.intel.com>
Fri, 23 Sep 2016 23:21:05 +0000 (16:21 -0700)
commit55455449982564da833d51b28bdd39a06ad28740
tree42a2ee30bb0f989fba3f5cf1d1dc012d2ba6076b
parent6f7e357bf181b5a9da9daffcd40a64ee516a29e4
platform/x86: toshiba_haps: Split ACPI and HDD protection error handling

Currently the code checking for the ACPI status is mixed along with
the actual HDD protection status check.

This patch splits those two checks as they are not related, printing
an error string in case the ACPI call failed, and then check for
actual HDD protection status.

Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/toshiba_haps.c