Thermal: Fix bug on cpu_cooling, cooling device's id conflict problem.
authorJonghwa Lee <jonghwa3.lee@samsung.com>
Wed, 26 Sep 2012 00:43:31 +0000 (09:43 +0900)
committerZhang Rui <rui.zhang@intel.com>
Thu, 27 Sep 2012 06:11:22 +0000 (14:11 +0800)
commita4b6fec977020a508ff04b05f0fa01221a4ecf29
tree21bd4a00d5a6b1d15778a9f520b32d7bcf88991f
parent79e093c3fe9de9fe0743a53e4809f481d2719060
Thermal: Fix bug on cpu_cooling, cooling device's id conflict problem.

This patch fixes small bug on cpu_cooling. CPU cooling device has own
id generated with idr mathod. However in the previous version, it swapped
to all same id at last stage of probing as 0. This makes id's collision and
also occures error when it releases that id.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
drivers/thermal/cpu_cooling.c