aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2008-08-08 14:12:04 +0000
committerJohn Crispin <blogic@openwrt.org>2008-08-08 14:12:04 +0000
commit9d28effef868e85d0ba3293d783a56e9873f933c (patch)
treee1ccb044434fa61ca141f6353588e0fb037d5403 /target
parent31ed4e54ca9186511d0c5de41f1383d2709501d2 (diff)
downloadmaster-187ad058-9d28effef868e85d0ba3293d783a56e9873f933c.tar.gz
master-187ad058-9d28effef868e85d0ba3293d783a56e9873f933c.tar.bz2
master-187ad058-9d28effef868e85d0ba3293d783a56e9873f933c.zip
fixes kernel oops when reset button was pressed too often on atheros
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12245 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/atheros/files/arch/mips/atheros/reset.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/target/linux/atheros/files/arch/mips/atheros/reset.c b/target/linux/atheros/files/arch/mips/atheros/reset.c
index a94954d091..eb525da207 100644
--- a/target/linux/atheros/files/arch/mips/atheros/reset.c
+++ b/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;
}