EDP: psy depletion: use flush_delayed_work
authorPhilip Rakity <prakity@nvidia.com>
Wed, 25 Sep 2013 11:42:31 +0000 (12:42 +0100)
committerAjay Nandakumar <anandakumarm@nvidia.com>
Thu, 3 Oct 2013 13:47:35 +0000 (18:47 +0530)
commit67c84452c876a7fb07cfdef133de95a1b20be04c
tree4ce05052edff05eea8337e585180bc758ae9421b
parentd76811dd1154b52a89d01eb05db79104ad6b75b3
EDP: psy depletion: use flush_delayed_work

flush_delayed_work should be used rather then
flush_delay_work_sync.

flush_delayed_work_sync just calls flush_delayed_work.
see workqueue.h

/nvidia/DEV_KERNEL/kernel/drivers/edp/psy_depletion.c
In function 'capacity_set':
nvidia/DEV_KERNEL/kernel/drivers/edp/psy_depletion.c:280:2:
warning: 'flush_delayed_work_sync' is deprecated
(declared at
/nvidia/DEV_KERNEL/kernel/include/linux/workqueue.h:454)
[-Wdeprecated-declarations]

/nvidia/DEV_KERNEL/kernel/drivers/edp/psy_depletion.c:
In function 'vsysmin_set'
/nvidia/DEV_KERNEL/kernel/drivers/edp/psy_depletion.c:297:2:
warning: 'flush_delayed_work_sync' is deprecated
(declared at
/nvidia/DEV_KERNEL/kernel/include/linux/workqueue.h:454)
[-Wdeprecated-declarations]

Change-Id: Ib6ee73feb40560aa5eb9b8941047e5313ac3aaa9
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/278887
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
(cherry picked from commit 1ad8994d893cf805e84988a4f1077250f90957bb)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
drivers/edp/psy_depletion.c