commit | 3e1d7fb0d279fea19eb4e36cc9bddf89264ba03f | [log] [tgz] |
---|---|---|
author | MyungJoo Ham <myungjoo.ham@samsung.com> | Fri Oct 02 12:39:23 2015 +0900 |
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | Wed Jun 22 13:51:08 2016 +0900 |
tree | 52c99f6ff840b7cd78a744e183cd2991f7add3b8 | |
parent | 33688abb2802ff3a230bd2441f765477b94cc89e [diff] |
PM / devfreq: devm_kzalloc to have dev pointer more precisely devm_kzalloc of devfreq's statistics data structure has been using its parent device as the dev allocated for. If a device's devfreq is disabled in run-time, such allocated memory won't be freed. Desginating more precisely with the devfreq device pointer fixes the issue. Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>