summaryrefslogtreecommitdiff
path: root/drivers/devfreq/devfreq.c
diff options
context:
space:
mode:
authorCai Zhiyong <caizhiyong@huawei.com>2016-05-14 09:13:30 +0300
committerMyungJoo Ham <myungjoo.ham@samsung.com>2016-06-22 07:52:43 +0300
commita5e9b937fa91b3f404618b5281c3239bd1f09c7b (patch)
treeaeed53ef5ccd6b0d5c5846b672aef6c5c41bb194 /drivers/devfreq/devfreq.c
parentac4b281176a54d17dd3f91b7fb4a4656471d8730 (diff)
downloadlinux-a5e9b937fa91b3f404618b5281c3239bd1f09c7b.tar.xz
PM / devfreq: fix double call put_device
1295 */ 1296 void device_unregister(struct device *dev) 1297 { 1298 pr_debug("device: '%s': %s\n", dev_name(dev), __func__); 1299 device_del(dev); 1300 put_device(dev); 1301 } 1302 EXPORT_SYMBOL_GPL(device_unregister); 1303 device_unregister is called put_device, there is no need to call put_device(&devfreq->dev) again. Signed-off-by: Cai Zhiyong <caizhiyong@huawei.com> Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/devfreq/devfreq.c')
-rw-r--r--drivers/devfreq/devfreq.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
index 6f33c1e89a14..3e1afb4ac77c 100644
--- a/drivers/devfreq/devfreq.c
+++ b/drivers/devfreq/devfreq.c
@@ -620,7 +620,6 @@ int devfreq_remove_device(struct devfreq *devfreq)
return -EINVAL;
device_unregister(&devfreq->dev);
- put_device(&devfreq->dev);
return 0;
}