diff options
Diffstat (limited to 'drivers/watchdog/cpwd.c')
-rw-r--r-- | drivers/watchdog/cpwd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/watchdog/cpwd.c b/drivers/watchdog/cpwd.c index 081f2955419e..ba2efce4b40e 100644 --- a/drivers/watchdog/cpwd.c +++ b/drivers/watchdog/cpwd.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/interrupt.h> | 24 | #include <linux/interrupt.h> |
25 | #include <linux/ioport.h> | 25 | #include <linux/ioport.h> |
26 | #include <linux/timer.h> | 26 | #include <linux/timer.h> |
27 | #include <linux/slab.h> | ||
27 | #include <linux/smp_lock.h> | 28 | #include <linux/smp_lock.h> |
28 | #include <linux/io.h> | 29 | #include <linux/io.h> |
29 | #include <linux/of.h> | 30 | #include <linux/of.h> |
@@ -403,7 +404,7 @@ static int cpwd_release(struct inode *inode, struct file *file) | |||
403 | 404 | ||
404 | static long cpwd_ioctl(struct file *file, unsigned int cmd, unsigned long arg) | 405 | static long cpwd_ioctl(struct file *file, unsigned int cmd, unsigned long arg) |
405 | { | 406 | { |
406 | static struct watchdog_info info = { | 407 | static const struct watchdog_info info = { |
407 | .options = WDIOF_SETTIMEOUT, | 408 | .options = WDIOF_SETTIMEOUT, |
408 | .firmware_version = 1, | 409 | .firmware_version = 1, |
409 | .identity = DRIVER_NAME, | 410 | .identity = DRIVER_NAME, |