Thermal: Fix binding problem when there is thermal zone params
authorJinyoung Park <jinyoungp@nvidia.com>
Thu, 31 Jan 2013 12:32:21 +0000 (21:32 +0900)
committerMandar Padmawar <mpadmawar@nvidia.com>
Tue, 5 Feb 2013 11:33:36 +0000 (03:33 -0800)
commit602c6b3827650f3aee04554ba1a31663fe9e89b0
tree8d1dff1df27c07978ebdb9dade8fc51aa8eb9941
parent80f665b47c9a6618f187f462b8ae59571f61b493
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.

Bug 1200111

Change-Id: Ieee33ea308ac554b3553c5a038979955b6579ab0
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/196026
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
drivers/thermal/thermal_sys.c