drivers/thermal/spear_thermal.c: use devm_clk_get
authorJulia Lawall <Julia.Lawall@lip6.fr>
Fri, 7 Dec 2012 10:29:32 +0000 (11:29 +0100)
committerZhang Rui <rui.zhang@intel.com>
Fri, 4 Jan 2013 07:38:25 +0000 (15:38 +0800)
commit03b79bda8d061d80a6106e257c072a2754141bab
tree7efbfbfcdf9e4b4af9f2cd4e605571763b2906dc
parentd2a73e225d113fdccd80373ad9aeb2b58b32a30b
drivers/thermal/spear_thermal.c: use devm_clk_get

devm_clk_get allocates a resource that is released when a driver detaches.
This patch uses devm_clk_get for data that is allocated in the probe
function of a platform device and is only released in the remove function.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/spear_thermal.c