All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chanwoo Choi <cw00.choi@samsung.com>
To: Axel Lin <axel.lin@ingics.com>,
	"Rafael J . Wysocki" <rafael.j.wysocki@intel.com>
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org
Subject: Re: [PATCH] PM / devfreq: exynos-ppmu: Remove unused mutex from struct exynos_ppmu
Date: Tue, 20 Sep 2016 17:07:35 +0900	[thread overview]
Message-ID: <57E0EE47.4040300@samsung.com> (raw)
In-Reply-To: <1474354100-6092-1-git-send-email-axel.lin@ingics.com>

Hi,

If you remove the mutex, you better to remove
the header "#include <linux/mutex.h>" from exynos-ppmu.c.

If you remove the header file, looks good to me and
feel free to add my tag.
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>

Best Regards,
Chanwoo Choi

On 2016년 09월 20일 15:48, Axel Lin wrote:
> The mutex is not used at all, remove it.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
>  drivers/devfreq/event/exynos-ppmu.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c
> index f55cf0e..251692b 100644
> --- a/drivers/devfreq/event/exynos-ppmu.c
> +++ b/drivers/devfreq/event/exynos-ppmu.c
> @@ -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;
>  };
> @@ -463,7 +461,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 */
> 

  reply	other threads:[~2016-09-20  8:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20160920064920epcas1p20cac67f7f048c80fdcbe489e235e0cdb@epcas1p2.samsung.com>
2016-09-20  6:48 ` [PATCH] PM / devfreq: exynos-ppmu: Remove unused mutex from struct exynos_ppmu Axel Lin
2016-09-20  8:07   ` Chanwoo Choi [this message]
2016-09-20  8:09     ` Axel Lin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57E0EE47.4040300@samsung.com \
    --to=cw00.choi@samsung.com \
    --cc=axel.lin@ingics.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=myungjoo.ham@samsung.com \
    --cc=rafael.j.wysocki@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.