Commit b4e80f3c authored by Geliang Tang's avatar Geliang Tang Committed by Mauro Carvalho Chehab

[media] av7110: use setup_timer

Use setup_timer() instead of init_timer() to simplify the code.
Signed-off-by: default avatarGeliang Tang <geliangtang@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 20bdb04d
......@@ -333,9 +333,8 @@ int av7110_ir_init(struct av7110 *av7110)
av_list[av_cnt++] = av7110;
av7110_check_ir_config(av7110, true);
init_timer(&av7110->ir.keyup_timer);
av7110->ir.keyup_timer.function = av7110_emit_keyup;
av7110->ir.keyup_timer.data = (unsigned long) &av7110->ir;
setup_timer(&av7110->ir.keyup_timer, av7110_emit_keyup,
(unsigned long)&av7110->ir);
input_dev = input_allocate_device();
if (!input_dev)
......
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