Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
	}