drivers: thermal: cancel delayed work
authorMartin Gao <marting@nvidia.com>
Mon, 18 Apr 2016 20:11:40 +0000 (13:11 -0700)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 19 May 2016 02:56:52 +0000 (19:56 -0700)
commit5481bda9a0410b7f978fa36ff420836a0c4fbc42
tree6d9374f80cf3b5fc1d696616a7691de35dd3a635
parent38b807c739d27271bba30cb8995d0baae8ea964e
drivers: thermal: cancel delayed work

This change fixes cancel delayed work before scheduling another one,
which was a race condition.

Bug 1751479

Change-Id: Idd0bab7e6ec1fd9022ef24fb73d8ef2fa1e84909
Signed-off-by: Martin Gao <marting@nvidia.com>
(cherry picked from commit 7a770ad9041c731de45b56a2f8dc134ac0a87656)
Reviewed-on: http://git-master/r/1128368
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
drivers/thermal/pwm_fan.c