PM / devfreq: exynos-ppmu: Remove unused mutex from struct exynos_ppmu
authorAxel Lin <axel.lin@ingics.com>
Fri, 21 Oct 2016 01:09:09 +0000 (09:09 +0800)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 17 Nov 2016 02:31:28 +0000 (11:31 +0900)
The mutex is not used at all, remove it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/event/exynos-ppmu.c

index 958285d5d64b4879590e5f690f5861abe03f3b86..107eb91a9415d26eb429bee2c47dc39ac132e648 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/mutex.h>
 #include <linux/of_address.h>
 #include <linux/platform_device.h>
 #include <linux/suspend.h>
@@ -34,7 +33,6 @@ struct exynos_ppmu {
        unsigned int num_events;
 
        struct device *dev;
-       struct mutex lock;
 
        struct exynos_ppmu_data ppmu;
 };
@@ -462,7 +460,6 @@ static int exynos_ppmu_probe(struct platform_device *pdev)
        if (!info)
                return -ENOMEM;
 
-       mutex_init(&info->lock);
        info->dev = &pdev->dev;
 
        /* Parse dt data to get resource */