diff options
| author | Tetsuo Handa <[email protected]> | 2022-06-10 19:08:43 +0900 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-06-10 14:47:45 +0200 |
| commit | 4bbdc208a5ff3ba970fecd4fdb36a9ce6ca06895 (patch) | |
| tree | 527fc18922d5af67bd8f406bfc12fd78f283d469 | |
| parent | d2b47721a10037c17b378decc611341bfff60c44 (diff) | |
staging: olpc_dcon: Replace flush_scheduled_work() with flush_work().
Since "struct dcon_priv" is per a device struct, I assume that
dcon_set_source_sync() 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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
| -rw-r--r-- | drivers/staging/olpc_dcon/olpc_dcon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/olpc_dcon/olpc_dcon.c b/drivers/staging/olpc_dcon/olpc_dcon.c index b9d570e9ad3b..9363c5cfe50f 100644 --- a/drivers/staging/olpc_dcon/olpc_dcon.c +++ b/drivers/staging/olpc_dcon/olpc_dcon.c @@ -383,7 +383,7 @@ static void dcon_set_source(struct dcon_priv *dcon, int arg) static void dcon_set_source_sync(struct dcon_priv *dcon, int arg) { dcon_set_source(dcon, arg); - flush_scheduled_work(); + flush_work(&dcon->switch_source); } static ssize_t dcon_mode_show(struct device *dev, |