PM / devfreq: Add resource-managed function for devfreq device
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 9 May 2014 07:43:08 +0000 (16:43 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Sat, 24 May 2014 13:33:38 +0000 (22:33 +0900)
commit8cd84092d35e52372da2c3c3c2afb1a719917af2
treeccb37cbe9e233257050288dbae74c6b3d914b55f
parent585fc83ece43be63d5775e536f855db33dd752cf
PM / devfreq: Add resource-managed function for devfreq device

This patch add resource-managed function for devfreq device as following
functions. The devm_devfreq_add_device() manages automatically the memory
of devfreq device using device resource management.
- devm_devfreq_add_device()
- devm_devfreq_remove_device()

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/devfreq.c
include/linux/devfreq.h