Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1516979

[PATCH v2 1/2] PM / devfreq: rk3399_dmc: Use the resource-managed function to add devfreq dev

From Chanwoo Choi <cw00.choi@samsung.com>
Newsgroups linux.kernel
Subject [PATCH v2 1/2] PM / devfreq: rk3399_dmc: Use the resource-managed function to add devfreq dev
Date 2016-11-08 10:20 +0100
Message-ID <sBaJs-7rN-19@gated-at.bofh.it> (permalink)
References <sBaJr-7rN-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/2] PM / devfreq: Use the resource-managed function for  devfreq device Chanwoo Choi <cw00.choi@samsung.com> - 2016-11-08 10:20 +0100
  [PATCH v2 1/2] PM / devfreq: rk3399_dmc: Use the resource-managed  function to add devfreq dev Chanwoo Choi <cw00.choi@samsung.com> - 2016-11-08 10:20 +0100
  [PATCH v2 2/2] scsi: ufs: Use the resource-managed function to add  devfreq device Chanwoo Choi <cw00.choi@samsung.com> - 2016-11-08 10:20 +0100
    Re: [PATCH v2 2/2] scsi: ufs: Use the resource-managed function to add devfreq device "Martin K. Petersen" <martin.petersen@oracle.com> - 2016-11-09 01:20 +0100
  [PATCH v2 2/2] scsi: ufs: Use the resource-managed function to add  devfreq device Chanwoo Choi <cw00.choi@samsung.com> - 2016-11-08 10:20 +0100
    Re: [PATCH v2 2/2] scsi: ufs: Use the resource-managed function to  add devfreq device Subhash Jadavani <subhashj@codeaurora.org> - 2016-11-08 21:50 +0100
  RE: [PATCH v2 2/2] scsi: ufs: Use the resource-managed function to add devfreq device MyungJoo Ham <myungjoo.ham@samsung.com> - 2016-11-09 02:30 +0100
  RE: [PATCH v2 1/2] PM / devfreq: rk3399_dmc: Use the resource-managed function to add devfreq dev MyungJoo Ham <myungjoo.ham@samsung.com> - 2016-11-09 02:30 +0100

csiph-web