diff options
author | Azael Avalos <coproscefalo@gmail.com> | 2015-09-09 13:25:44 -0400 |
---|---|---|
committer | Darren Hart <dvhart@linux.intel.com> | 2015-09-10 17:23:34 -0400 |
commit | cf680eae34d26bd474c2ed3bd7d3aff59054aed5 (patch) | |
tree | b6d27ebdffcb1bf7cb460d28e0877cacff07144e /drivers/platform | |
parent | 85b4e4eb2f9ac29ee8ec47f1f055f251cb251a3c (diff) |
toshiba_acpi: Fix USB Sleep and Music always disabled
Commit e1a949c1b988 ("toshiba_acpi: Refactor *{get, set} functions return
value") made changes on the return type of the HCI/SCI functions, but a
typo on the USB Sleep and Music code is always reporting non existent
support for such feature.
This patch corrects the typo, changing an assignment to a comparison,
making the laptops with actual support for such feature to work again.
Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/toshiba_acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index 6740c513919c..c434b53323ed 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c | |||
@@ -938,7 +938,7 @@ static int toshiba_usb_sleep_music_get(struct toshiba_acpi_dev *dev, u32 *state) | |||
938 | else if (result == TOS_NOT_SUPPORTED) | 938 | else if (result == TOS_NOT_SUPPORTED) |
939 | return -ENODEV; | 939 | return -ENODEV; |
940 | 940 | ||
941 | return result = TOS_SUCCESS ? 0 : -EIO; | 941 | return result == TOS_SUCCESS ? 0 : -EIO; |
942 | } | 942 | } |
943 | 943 | ||
944 | static int toshiba_usb_sleep_music_set(struct toshiba_acpi_dev *dev, u32 state) | 944 | static int toshiba_usb_sleep_music_set(struct toshiba_acpi_dev *dev, u32 state) |