summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorAyman Bagabas <ayman.bagabas@gmail.com>2019-10-20 19:00:09 +0200
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-10-21 11:17:30 +0200
commit16c6c057175cbdcdc6c1251bbce90264a5380240 (patch)
tree7b46d56ba784fa78d8c2ebaf4ab6086ad008313d /drivers/platform
parentplatform/x86: huawei-wmi: No need to check for battery name (diff)
downloadlinux-16c6c057175cbdcdc6c1251bbce90264a5380240.tar.xz
linux-16c6c057175cbdcdc6c1251bbce90264a5380240.zip
platform/x86: huawei-wmi: Remove unnecessary battery mutex
battery_lock mutex is never used and not needed. Fixes: 355a070b09ab ("platform/x86: huawei-wmi: Add battery charging thresholds") Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/huawei-wmi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/platform/x86/huawei-wmi.c b/drivers/platform/x86/huawei-wmi.c
index 7373a65a61d3..a2d846c4a7ee 100644
--- a/drivers/platform/x86/huawei-wmi.c
+++ b/drivers/platform/x86/huawei-wmi.c
@@ -67,7 +67,6 @@ struct huawei_wmi {
struct led_classdev cdev;
struct device *dev;
- struct mutex battery_lock;
struct mutex wmi_lock;
};
@@ -807,7 +806,6 @@ static int huawei_wmi_probe(struct platform_device *pdev)
if (wmi_has_guid(HWMI_METHOD_GUID)) {
mutex_init(&huawei_wmi->wmi_lock);
- mutex_init(&huawei_wmi->battery_lock);
huawei_wmi_leds_setup(&pdev->dev);
huawei_wmi_fn_lock_setup(&pdev->dev);