aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/dev.c
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2022-06-10 19:48:36 +0900
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2022-06-24 21:24:02 +0200
commit162b05524ed30586bd2a7ede1f0392c3d1ed2d6e (patch)
tree8e6549c3a521fb6e66c6ffc6986242bc8119b73d /drivers/rtc/dev.c
parent2023c5c8fe2e85ec7491d5a470fcca48f8144c02 (diff)
downloadlinux-162b05524ed30586bd2a7ede1f0392c3d1ed2d6e.tar.gz
rtc: Replace flush_scheduled_work() with flush_work().
Since "struct rtc_device" is per a device struct, I assume that clear_uie() needs to wait for only one work associated with that device. Therefore, wait for only that work using flush_work(). Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/8d3a0f55-d861-ba93-0d25-b1172eaa8343@I-love.SAKURA.ne.jp
Diffstat (limited to 'drivers/rtc/dev.c')
-rw-r--r--drivers/rtc/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/dev.c b/drivers/rtc/dev.c
index 69325aeede1a3..5cf90daf975c1 100644
--- a/drivers/rtc/dev.c
+++ b/drivers/rtc/dev.c
@@ -96,7 +96,7 @@ static int clear_uie(struct rtc_device *rtc)
}
if (rtc->uie_task_active) {
spin_unlock_irq(&rtc->irq_lock);
- flush_scheduled_work();
+ flush_work(&rtc->uie_task);
spin_lock_irq(&rtc->irq_lock);
}
rtc->uie_irq_active = 0;