platform/x86: huawei-wmi: Remove unnecessary battery mutex
authorAyman Bagabas <ayman.bagabas@gmail.com>
Sun, 20 Oct 2019 17:00:09 +0000 (13:00 -0400)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 21 Oct 2019 09:17:30 +0000 (12:17 +0300)
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>
drivers/platform/x86/huawei-wmi.c

index 7373a65a61d3cca8c9f1531c936a68259dff5ece..a2d846c4a7eef53c05745e7ef9514662876563e9 100644 (file)
@@ -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);