]> err.no Git - linux-2.6/blobdiff - drivers/watchdog/pnx4008_wdt.c
[WATCHDOG] sbc8360.c - move stop code into a function
[linux-2.6] / drivers / watchdog / pnx4008_wdt.c
index 56dee3bfd4aa24ecef18c2305001ed62b7579999..6eadf5ebb9b34ea647891b5c0da9a21a1463c0d3 100644 (file)
@@ -194,6 +194,11 @@ static long pnx4008_wdt_ioctl(struct inode *inode, struct file *file,
                ret = put_user(boot_status, (int *)arg);
                break;
 
+       case WDIOC_KEEPALIVE:
+               wdt_enable();
+               ret = 0;
+               break;
+
        case WDIOC_SETTIMEOUT:
                ret = get_user(time, (int *)arg);
                if (ret)
@@ -211,11 +216,6 @@ static long pnx4008_wdt_ioctl(struct inode *inode, struct file *file,
        case WDIOC_GETTIMEOUT:
                ret = put_user(heartbeat, (int *)arg);
                break;
-
-       case WDIOC_KEEPALIVE:
-               wdt_enable();
-               ret = 0;
-               break;
        }
        return ret;
 }