]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[WATCHDOG] mv64x60_wdt: Fix WDIOC_GETTIMEOUT return value
authorDale Farnsworth <dale@farnsworth.org>
Tue, 24 Jul 2007 18:14:21 +0000 (11:14 -0700)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 24 Jul 2007 21:16:09 +0000 (21:16 +0000)
WDIOC_GETTIMEOUT returns seconds, not jiffies.

Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/char/watchdog/mv64x60_wdt.c

index f1516b4b22a1a1fe161e1cc252aa61bbf2eabde2..420c7b82f4ca5a1e0dba9afbda53be61ffbf7a46 100644 (file)
@@ -118,7 +118,6 @@ static ssize_t mv64x60_wdt_write(struct file *file, const char __user *data,
 static int mv64x60_wdt_ioctl(struct inode *inode, struct file *file,
                             unsigned int cmd, unsigned long arg)
 {
-       int timeout;
        void __user *argp = (void __user *)arg;
        static struct watchdog_info info = {
                .options = WDIOF_KEEPALIVEPING,
@@ -154,8 +153,7 @@ static int mv64x60_wdt_ioctl(struct inode *inode, struct file *file,
                return -EOPNOTSUPP;
 
        case WDIOC_GETTIMEOUT:
-               timeout = mv64x60_wdt_timeout * HZ;
-               if (put_user(timeout, (int __user *)argp))
+               if (put_user(mv64x60_wdt_timeout, (int __user *)argp))
                        return -EFAULT;
                break;