Commit f88a74d4 authored by Miguel Jimenez Lopez's avatar Miguel Jimenez Lopez

sw/kernel: Fix a compilation error with timespec_to_jiffies

parent f9c88b31
......@@ -304,7 +304,7 @@ again:
ch--; c--; /* The for above incremeted them */
try_module_get(THIS_MODULE);
if(cmd->wait_mode_flags & WR_DIO_F_WAIT_MODE_TIMEOUT) {
unsigned long tmo = timespec_to_jiffies(cmd->wait_mode_timeout);
unsigned long tmo = timespec_to_jiffies(&(cmd->wait_mode_timeout));
ret_wait = wait_event_interruptible_timeout(c->q, c->bhead != c->btail, tmo);
if(!ret_wait)
ret_wait = -ETIMEDOUT;
......
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