Commit 16c6c057 authored by Ayman Bagabas's avatar Ayman Bagabas Committed by Andy Shevchenko

platform/x86: huawei-wmi: Remove unnecessary battery mutex

battery_lock mutex is never used and not needed.

Fixes: 355a070b ("platform/x86: huawei-wmi: Add battery charging thresholds")
Signed-off-by: default avatarAyman Bagabas <ayman.bagabas@gmail.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 39c0a629
...@@ -67,7 +67,6 @@ struct huawei_wmi { ...@@ -67,7 +67,6 @@ struct huawei_wmi {
struct led_classdev cdev; struct led_classdev cdev;
struct device *dev; struct device *dev;
struct mutex battery_lock;
struct mutex wmi_lock; struct mutex wmi_lock;
}; };
...@@ -807,7 +806,6 @@ static int huawei_wmi_probe(struct platform_device *pdev) ...@@ -807,7 +806,6 @@ static int huawei_wmi_probe(struct platform_device *pdev)
if (wmi_has_guid(HWMI_METHOD_GUID)) { if (wmi_has_guid(HWMI_METHOD_GUID)) {
mutex_init(&huawei_wmi->wmi_lock); mutex_init(&huawei_wmi->wmi_lock);
mutex_init(&huawei_wmi->battery_lock);
huawei_wmi_leds_setup(&pdev->dev); huawei_wmi_leds_setup(&pdev->dev);
huawei_wmi_fn_lock_setup(&pdev->dev); huawei_wmi_fn_lock_setup(&pdev->dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment