diff options
Diffstat (limited to 'drivers/watchdog/davinci_wdt.c')
-rw-r--r-- | drivers/watchdog/davinci_wdt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/watchdog/davinci_wdt.c b/drivers/watchdog/davinci_wdt.c index 9d7520fa9e9c..596ba604e78d 100644 --- a/drivers/watchdog/davinci_wdt.c +++ b/drivers/watchdog/davinci_wdt.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/io.h> | 26 | #include <linux/io.h> |
27 | #include <linux/device.h> | 27 | #include <linux/device.h> |
28 | #include <linux/clk.h> | 28 | #include <linux/clk.h> |
29 | #include <linux/slab.h> | ||
29 | 30 | ||
30 | #define MODULE_NAME "DAVINCI-WDT: " | 31 | #define MODULE_NAME "DAVINCI-WDT: " |
31 | 32 | ||
@@ -142,7 +143,7 @@ davinci_wdt_write(struct file *file, const char *data, size_t len, | |||
142 | return len; | 143 | return len; |
143 | } | 144 | } |
144 | 145 | ||
145 | static struct watchdog_info ident = { | 146 | static const struct watchdog_info ident = { |
146 | .options = WDIOF_KEEPALIVEPING, | 147 | .options = WDIOF_KEEPALIVEPING, |
147 | .identity = "DaVinci Watchdog", | 148 | .identity = "DaVinci Watchdog", |
148 | }; | 149 | }; |
@@ -221,7 +222,7 @@ static int __devinit davinci_wdt_probe(struct platform_device *pdev) | |||
221 | return -ENOENT; | 222 | return -ENOENT; |
222 | } | 223 | } |
223 | 224 | ||
224 | size = res->end - res->start + 1; | 225 | size = resource_size(res); |
225 | wdt_mem = request_mem_region(res->start, size, pdev->name); | 226 | wdt_mem = request_mem_region(res->start, size, pdev->name); |
226 | 227 | ||
227 | if (wdt_mem == NULL) { | 228 | if (wdt_mem == NULL) { |