diff options
Diffstat (limited to 'drivers/watchdog/watchdog_dev.c')
-rw-r--r-- | drivers/watchdog/watchdog_dev.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c index ac20f92347b1..e7134a5979c6 100644 --- a/drivers/watchdog/watchdog_dev.c +++ b/drivers/watchdog/watchdog_dev.c | |||
@@ -180,6 +180,12 @@ static long watchdog_ioctl(struct file *file, unsigned int cmd, | |||
180 | unsigned int val; | 180 | unsigned int val; |
181 | int err; | 181 | int err; |
182 | 182 | ||
183 | if (wdd->ops->ioctl) { | ||
184 | err = wdd->ops->ioctl(wdd, cmd, arg); | ||
185 | if (err != -ENOIOCTLCMD) | ||
186 | return err; | ||
187 | } | ||
188 | |||
183 | switch (cmd) { | 189 | switch (cmd) { |
184 | case WDIOC_GETSUPPORT: | 190 | case WDIOC_GETSUPPORT: |
185 | return copy_to_user(argp, wdd->info, | 191 | return copy_to_user(argp, wdd->info, |