Commit cceeb872 authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Dmitry Torokhov

Input: hil_kbd - fix incorrect use of init_completion

The successive init_completion calls should be reinit_completion calls.
Signed-off-by: default avatarNicholas Mc Guire <der.herr@hofr.at>
Acked-by: default avatarHelge Deller <deller@gmx.de>
Tested-by: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 6d32af01
...@@ -473,7 +473,7 @@ static int hil_dev_connect(struct serio *serio, struct serio_driver *drv) ...@@ -473,7 +473,7 @@ static int hil_dev_connect(struct serio *serio, struct serio_driver *drv)
if (error) if (error)
goto bail1; goto bail1;
init_completion(&dev->cmd_done); reinit_completion(&dev->cmd_done);
serio_write(serio, 0); serio_write(serio, 0);
serio_write(serio, 0); serio_write(serio, 0);
serio_write(serio, HIL_PKT_CMD >> 8); serio_write(serio, HIL_PKT_CMD >> 8);
...@@ -482,7 +482,7 @@ static int hil_dev_connect(struct serio *serio, struct serio_driver *drv) ...@@ -482,7 +482,7 @@ static int hil_dev_connect(struct serio *serio, struct serio_driver *drv)
if (error) if (error)
goto bail1; goto bail1;
init_completion(&dev->cmd_done); reinit_completion(&dev->cmd_done);
serio_write(serio, 0); serio_write(serio, 0);
serio_write(serio, 0); serio_write(serio, 0);
serio_write(serio, HIL_PKT_CMD >> 8); serio_write(serio, HIL_PKT_CMD >> 8);
...@@ -491,7 +491,7 @@ static int hil_dev_connect(struct serio *serio, struct serio_driver *drv) ...@@ -491,7 +491,7 @@ static int hil_dev_connect(struct serio *serio, struct serio_driver *drv)
if (error) if (error)
goto bail1; goto bail1;
init_completion(&dev->cmd_done); reinit_completion(&dev->cmd_done);
serio_write(serio, 0); serio_write(serio, 0);
serio_write(serio, 0); serio_write(serio, 0);
serio_write(serio, HIL_PKT_CMD >> 8); serio_write(serio, HIL_PKT_CMD >> 8);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment