diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2016-11-08 10:13:27 +0100 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2016-11-17 03:31:29 +0100 |
commit | 927b75a628b1d80fef171420fbd694fc28d9b8e9 (patch) | |
tree | edb56e11448f88fe45b5803dee3a1fc64fa59039 /drivers/devfreq | |
parent | PM / devfreq: correct comment typo. (diff) | |
download | linux-927b75a628b1d80fef171420fbd694fc28d9b8e9.tar.xz linux-927b75a628b1d80fef171420fbd694fc28d9b8e9.zip |
PM / devfreq: rk3399_dmc: Use the resource-managed function to add devfreq dev
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>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/devfreq')
-rw-r--r-- | drivers/devfreq/rk3399_dmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/devfreq/rk3399_dmc.c b/drivers/devfreq/rk3399_dmc.c index 77bd9d02e870..5063ac1a5939 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); |