Skip to content

Commit

Permalink
PM / devfreq: rk3399_dmc: Use the resource-managed function to add de…
Browse files Browse the repository at this point in the history
…vfreq 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 <[email protected]>
Signed-off-by: MyungJoo Ham <[email protected]>
  • Loading branch information
chanwoochoi authored and myungjoo committed Nov 17, 2016
1 parent bafeb42 commit 927b75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/devfreq/rk3399_dmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 927b75a

Please sign in to comment.