mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
UPSTREAM: 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);
Conflicts:
drivers/devfreq/rk3399_dmc.c
Change-Id: I2ba2779a1b944931dc240f0593824f0316d11985
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
(cherry picked from commit 927b75a628)
This commit is contained in:
@@ -461,7 +461,7 @@ static int rk3399_dmcfreq_probe(struct platform_device *pdev)
|
||||
data->volt = regulator_get_voltage(data->vdd_center);
|
||||
|
||||
devp->initial_freq = data->rate;
|
||||
data->devfreq = devfreq_add_device(dev, devp,
|
||||
data->devfreq = devm_devfreq_add_device(dev, devp,
|
||||
"simple_ondemand",
|
||||
&data->ondemand_data);
|
||||
if (IS_ERR(data->devfreq))
|
||||
|
||||
Reference in New Issue
Block a user