mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-23 01:08:55 +00:00
dde_linux: fix timer callback compatibility with older drivers
Fixes #3137
This commit is contained in:
committed by
Norman Feske
parent
845253af3a
commit
e9e048c4ea
@ -60,8 +60,14 @@ class Lx_kit::Timer : public Lx::Timer
|
||||
case LIST:
|
||||
{
|
||||
timer_list *t = static_cast<timer_list *>(timer);
|
||||
if (t->function)
|
||||
t->function(t);
|
||||
if (t->function) {
|
||||
/*
|
||||
* Pass 't->data' instead of 't' for compatibility
|
||||
* with 4.4.3 drivers. When set up with
|
||||
* 'timer_setup()', 't->data' matches 't'.
|
||||
*/
|
||||
t->function((struct timer_list*)t->data);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user