projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5e9b93
)
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
MyungJoo Ham
<myungjoo.ham@samsung.com>
Wed, 22 Jun 2016 04:52:52 +0000
(13:52 +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
|
blame
|
history
diff --git
a/drivers/devfreq/devfreq.c
b/drivers/devfreq/devfreq.c
index 3e1afb4ac77c01efb2066e5f457b476d4610c2bc..0ebd64dfc0a98bedfd7eaf45107430ef505a8253 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;
}