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

SVN-Revision: 12245
master
John Crispin 16 years ago
parent c11df62fb8
commit 2bd17fe1cb
  1. 6
      target/linux/atheros/files/arch/mips/atheros/reset.c

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

Loading…
Cancel
Save