fixes kernel oops when reset button was pressed too often on atheros

SVN-Revision: 12245
owl
John Crispin 2008-08-08 14:12:04 +00:00
parent c11df62fb8
commit 2bd17fe1cb
1 changed files with 2 additions and 4 deletions

View File

@ -129,10 +129,8 @@ static irqreturn_t button_handler(int irq, void *dev_id)
seen = jiffies; seen = jiffies;
if(event->set && no_release_workaround) if(event->set && no_release_workaround)
{ mod_timer(&rst_button_timer, jiffies + (HZ / 4));
rst_button_timer.expires = jiffies + (HZ / 4);
add_timer(&rst_button_timer);
}
return IRQ_HANDLED; return IRQ_HANDLED;
} }