]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: Replace flush_scheduled_work() with flush_work().
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Fri, 10 Jun 2022 10:48:36 +0000 (19:48 +0900)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 24 Jun 2022 19:24:02 +0000 (21:24 +0200)
commit5bfd0ebd9546cb1017b61135abf74675a5e7bfad
tree8e6549c3a521fb6e66c6ffc6986242bc8119b73d
parent84e1bed647b1b1bff4abe8f0602b54300862d5fa
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
drivers/rtc/dev.c