linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "MyungJoo Ham" <myungjoo.ham@samsung.com>
To: "Chanwoo Choi" <cw00.choi@samsung.com>,
	"Kyungmin Park" <kyungmin.park@samsung.com>
Cc: "rjw@rjwysocki.net" <rjw@rjwysocki.net>,
	"subhashj@codeaurora.org" <subhashj@codeaurora.org>,
	"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH v2 1/2] PM / devfreq: rk3399_dmc: Use the resource-managed function to add devfreq dev
Date: Wed, 09 Nov 2016 01:20:12 +0000	[thread overview]
Message-ID: <1902520132.610650.1478654412123.JavaMail.weblogic@ep2ml103c> (raw)
In-Reply-To: CGME20161108091331epcas1p252b29eaa3bdd280c9b44c3d1da4d12ca@epcas1p2.samsung.com

[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]

> This patch uses the resource-managed to add the devfreq device.
> This function will make it easy to handle the devfreq device.
> 
> - struct devfreq *devm_devfreq_add_device(struct device *dev,
> 				  struct devfreq_dev_profile *profile,
> 				  const char *governor_name,
> 				  void *data);
> 
> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>


> ---
>  drivers/devfreq/rk3399_dmc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/devfreq/rk3399_dmc.c b/drivers/devfreq/rk3399_dmc.c
> index e24b73d66659..3f8f4381cd4a 100644
> --- a/drivers/devfreq/rk3399_dmc.c
> +++ b/drivers/devfreq/rk3399_dmc.c
> @@ -436,7 +436,7 @@ static int rk3399_dmcfreq_probe(struct platform_device *pdev)
>  
>  	rk3399_devfreq_dmc_profile.initial_freq = data->rate;
>  
> -	data->devfreq = devfreq_add_device(dev,
> +	data->devfreq = devm_devfreq_add_device(dev,
>  					   &rk3399_devfreq_dmc_profile,
>  					   "simple_ondemand",
>  					   &data->ondemand_data);
> -- 
> 1.9.1
> 

  parent reply	other threads:[~2016-11-09  1:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-08  9:13 [PATCH v2 0/2] PM / devfreq: Use the resource-managed function for devfreq device Chanwoo Choi
2016-11-08  9:13 ` [PATCH v2 1/2] PM / devfreq: rk3399_dmc: Use the resource-managed function to add devfreq dev Chanwoo Choi
2016-11-08  9:13 ` [PATCH v2 2/2] scsi: ufs: Use the resource-managed function to add devfreq device Chanwoo Choi
2016-11-09  0:17   ` Martin K. Petersen
2016-11-08  9:16 ` Chanwoo Choi
2016-11-08 20:40   ` Subhash Jadavani
     [not found] ` <CGME20161108091331epcas1p252b29eaa3bdd280c9b44c3d1da4d12ca@epcas1p2.samsung.com>
2016-11-09  1:20   ` MyungJoo Ham [this message]
     [not found] ` <CGME20161108091702epcas5p4779c47d7341e22697e7e49dd2f91ae0b@epcas5p4.samsung.com>
2016-11-09  1:26   ` MyungJoo Ham

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=1902520132.610650.1478654412123.JavaMail.weblogic@ep2ml103c \
    --to=myungjoo.ham@samsung.com \
    --cc=cw00.choi@samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=subhashj@codeaurora.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).