thermal: clock_cooling: Fix missing mutex_init()
authorWei Yongjun <weiyj.lk@gmail.com>
Mon, 25 Jul 2016 07:01:19 +0000 (07:01 +0000)
committerZhang Rui <rui.zhang@intel.com>
Mon, 8 Aug 2016 02:57:39 +0000 (10:57 +0800)
commit165989a5b667b90589f21c8affe496ad21f08591
tree2e90ffc74b93cac9d52be32225b84eb4a24a26c7
parentf4c592439b144ef1de66eac764140643a54099eb
thermal: clock_cooling: Fix missing mutex_init()

The driver allocates the mutex but not initialize it.
Use mutex_init() on it to initialize it correctly.

This is detected by Coccinelle semantic patch.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/clock_cooling.c