projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5fce91
)
PM / devfreq: remove double put_device
author
MyungJoo Ham
<myungjoo.ham@samsung.com>
Mon, 16 May 2016 02:41:57 +0000
(11:41 +0900)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Mon, 4 Sep 2017 05:33:26 +0000
(14:33 +0900)
When device_register() returns with error, it has already
done put_device() on the input device pointer.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/devfreq.c
patch
|
blob
|
history
diff --git
a/drivers/devfreq/devfreq.c
b/drivers/devfreq/devfreq.c
index
3e1afb4
..
0ebd64d
100644
(file)
--- a/
drivers/devfreq/devfreq.c
+++ b/
drivers/devfreq/devfreq.c
@@
-564,7
+564,6
@@
struct devfreq *devfreq_add_device(struct device *dev,
dev_set_name(&devfreq->dev, "%s", dev_name(dev));
err = device_register(&devfreq->dev);
if (err) {
- put_device(&devfreq->dev);
mutex_unlock(&devfreq->lock);
goto err_out;
}