PM / devfreq: devm_kzalloc to have dev pointer more precisely
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 2 Oct 2015 03:39:23 +0000 (12:39 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 22 Jun 2016 04:51:08 +0000 (13:51 +0900)
commit3e1d7fb0d279fea19eb4e36cc9bddf89264ba03f
tree52c99f6ff840b7cd78a744e183cd2991f7add3b8
parent33688abb2802ff3a230bd2441f765477b94cc89e
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>
drivers/devfreq/devfreq.c