]> git.itanic.dy.fi Git - linux-stable/commit
iio: light: tsl2563: Replace flush_scheduled_work() with cancel_delayed_work_sync().
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Sun, 12 Jun 2022 14:52:59 +0000 (23:52 +0900)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 18 Jun 2022 13:51:17 +0000 (14:51 +0100)
commit76faa32077b0340382881b66ce6beaefd9d9da97
tree3ab74a343d97fb59be908ec0d94699b5e837b735
parent4a08069461ac9822855116d24fbf11d5fb223cd1
iio: light: tsl2563: Replace flush_scheduled_work() with cancel_delayed_work_sync().

Commit 9e61d901155bcd4e ("iio: light: tsl2563: Remove
flush_scheduled_work") replaced cancel_delayed_work() +
flush_scheduled_work() with cancel_delayed_work_sync() for only
tsl2563_probe() side.

Do the same thing for tsl2563_remove() side, which was added by
commit 388be4883952872b ("staging:iio: tsl2563 abi fixes and interrupt
handling").

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Link: https://lore.kernel.org/r/3381176e-2f86-24ba-a8ba-c4ce8f416086@I-love.SAKURA.ne.jp
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/tsl2563.c