thermal: Fix binding problem when there is thermal zone params
authorNi Wade <wni@nvidia.com>
Wed, 6 Nov 2013 06:30:13 +0000 (14:30 +0800)
committerZhang Rui <rui.zhang@intel.com>
Wed, 6 Nov 2013 07:33:46 +0000 (15:33 +0800)
commita9f2d19ba7be38590c84487359891d45a66b62f4
treea4bf5768771725f7e47662a3aac0de13e24d871e
parent73b9bcd76d13716cc0e0ab053f8c1ae41f47636e
thermal: Fix binding problem when there is thermal zone params

The thermal zone params can be used to set governor
to specific thermal governor for thermal zone device.
But if the thermal zone params has only governor name
without thermal bind params, then the thermal zone device
will not be binding to cooling device. Because tz->ops->bind
operator is not invoked in bind_tz() and bind_cdev() when
there is thermal zone params.

Signed-off-by: Wei Ni <wni@nvidia.com>
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/thermal_core.c