]> git.hungrycats.org Git - linux/commitdiff
[PATCH] unbreak the acquirewdt
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Fri, 21 Mar 2003 10:20:37 +0000 (02:20 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 21 Mar 2003 10:20:37 +0000 (02:20 -0800)
This puts back a MOD_INC_USE which leaves a warning but means that the
driver doesnt now load/unload and disable the watchdog on a close

drivers/char/watchdog/acquirewdt.c

index e67f7325a8f2a4867d2fcdd654efe59321dfdecb..c3fa7e4e556b35c89344be5fd612ae58528ec5d7 100644 (file)
@@ -141,6 +141,8 @@ static int acq_open(struct inode *inode, struct file *file)
                        spin_unlock(&acq_lock);
                        return -EBUSY;
                }
+               if (nowayout)
+                       MOD_INC_USE_COUNT;
 
                /* Activate */
                acq_is_open=1;