watchdog: WatchDog Timer Driver Core - Add ioctl call
[deliverable/linux.git] / drivers / watchdog / watchdog_dev.c
index ac20f92347b14be49ad704c2d59a80cb7323c0c5..e7134a5979c61d99cefd3bb49cfef829e1fad19a 100644 (file)
@@ -180,6 +180,12 @@ static long watchdog_ioctl(struct file *file, unsigned int cmd,
        unsigned int val;
        int err;
 
+       if (wdd->ops->ioctl) {
+               err = wdd->ops->ioctl(wdd, cmd, arg);
+               if (err != -ENOIOCTLCMD)
+                       return err;
+       }
+
        switch (cmd) {
        case WDIOC_GETSUPPORT:
                return copy_to_user(argp, wdd->info,
This page took 0.028348 seconds and 5 git commands to generate.