Commit 67ffdb52 authored by MyungJoo Ham's avatar MyungJoo Ham

PM / devfreq: remove double put_device

When device_register() returns with error, it has already
done put_device() on the input device pointer.
Signed-off-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
parent a5e9b937
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment