]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/watchdog/indydog.c
[WATCHDOG] hpwdt.c kdebug support
[linux-2.6-omap-h63xx.git] / drivers / watchdog / indydog.c
index 0bffea37404ed1e72d2e7d74fabfbe13e714f8cb..73c9e7992febc2c550d575f10d9ff9874bbdbd33 100644 (file)
@@ -128,11 +128,6 @@ static long indydog_ioctl(struct file *file, unsigned int cmd,
        case WDIOC_GETSTATUS:
        case WDIOC_GETBOOTSTATUS:
                return put_user(0, (int *)arg);
-       case WDIOC_KEEPALIVE:
-               indydog_ping();
-               return 0;
-       case WDIOC_GETTIMEOUT:
-               return put_user(WATCHDOG_TIMEOUT, (int *)arg);
        case WDIOC_SETOPTIONS:
        {
                if (get_user(options, (int *)arg))
@@ -147,6 +142,11 @@ static long indydog_ioctl(struct file *file, unsigned int cmd,
                }
                return retval;
        }
+       case WDIOC_KEEPALIVE:
+               indydog_ping();
+               return 0;
+       case WDIOC_GETTIMEOUT:
+               return put_user(WATCHDOG_TIMEOUT, (int *)arg);
        default:
                return -ENOTTY;
        }