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)
committerAlex Shi <alex.shi@linaro.org>
Thu, 25 Sep 2014 09:01:12 +0000 (17:01 +0800)
commitd05bc7105a1b8f6df6569b7c1a89a2fe466f8688
treeb378d72a90a30c580072b754b83b6b55e4fb76d6
parent3585453daba3b8be18deb1e472e779961be17f77
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>
(cherry picked from commit a9f2d19ba7be38590c84487359891d45a66b62f4)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
drivers/thermal/thermal_core.c