]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/watchdog/acquirewdt.c
r8169: add a new 8168c flavor (bis)
[linux-2.6-omap-h63xx.git] / drivers / watchdog / acquirewdt.c
index 269ada2f1fc373c253683eae4ec41d156d27d525..6e46a551395c14dc4d98d5f36ce88c2af21954e9 100644 (file)
@@ -65,7 +65,6 @@
 #include <linux/ioport.h>              /* For io-port access */
 #include <linux/platform_device.h>     /* For platform_driver framework */
 #include <linux/init.h>                        /* For __init/__exit/... */
-
 #include <linux/uaccess.h>             /* For copy_to_user/put_user/... */
 #include <linux/io.h>                  /* For inb/outb/... */
 
@@ -127,7 +126,7 @@ static ssize_t acq_write(struct file *file, const char __user *buf,
                if (!nowayout) {
                        size_t i;
                        /* note: just in case someone wrote the magic character
-                        * five months ago... */
+                          five months ago... */
                        expect_close = 0;
                        /* scan to see whether or not we got the
                           magic character */
@@ -165,13 +164,6 @@ static long acq_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
        case WDIOC_GETBOOTSTATUS:
                return put_user(0, p);
 
-       case WDIOC_KEEPALIVE:
-               acq_keepalive();
-               return 0;
-
-       case WDIOC_GETTIMEOUT:
-         return put_user(WATCHDOG_HEARTBEAT, p);
-
        case WDIOC_SETOPTIONS:
        {
                if (get_user(options, p))
@@ -186,6 +178,13 @@ static long acq_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
                }
                return retval;
        }
+       case WDIOC_KEEPALIVE:
+               acq_keepalive();
+               return 0;
+
+       case WDIOC_GETTIMEOUT:
+               return put_user(WATCHDOG_HEARTBEAT, p);
+
        default:
                return -ENOTTY;
        }