PM / devfreq: fix duplicated kfree on devfreq pointer

device_unregister() calls kfree already.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
This commit is contained in:
MyungJoo Ham 2015-10-02 12:48:54 +09:00
parent 3e1d7fb0d2
commit ac4b281176
1 changed files with 0 additions and 1 deletions

View File

@ -603,7 +603,6 @@ struct devfreq *devfreq_add_device(struct device *dev,
err_init:
list_del(&devfreq->node);
device_unregister(&devfreq->dev);
kfree(devfreq);
err_out:
return ERR_PTR(err);
}