projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
322af98
)
watchdog: booke_wdt: fix build - unconstify watchdog_info
author
Anton Vorontsov
<
[email protected]
>
Mon, 26 Apr 2010 22:59:53 +0000
(15:59 -0700)
committer
Wim Van Sebroeck
<
[email protected]
>
Tue, 27 Apr 2010 07:58:47 +0000
(07:58 +0000)
commit
42747d712de56cf2087b702d2ad90af114c53138
("[WATCHDOG] watchdog_info
constify") introduced the following build failure:
CC booke_wdt.o
booke_wdt.c: In function 'booke_wdt_init':
booke_wdt.c:220: error: assignment of read-only variable 'ident'
Fix this by removing 'const' qualifier from watchdog_info struct.
Signed-off-by: Anton Vorontsov <
[email protected]
>
Signed-off-by: Wim Van Sebroeck <
[email protected]
>
Cc: Kumar Gala <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
drivers/watchdog/booke_wdt.c
patch
|
blob
|
history
diff --git
a/drivers/watchdog/booke_wdt.c
b/drivers/watchdog/booke_wdt.c
index 500d38342e1ecc7e03f8654cfab7b9d760624664..801ead1914999c435b36fba4624329758936aadf 100644
(file)
--- a/
drivers/watchdog/booke_wdt.c
+++ b/
drivers/watchdog/booke_wdt.c
@@
-121,7
+121,7
@@
static ssize_t booke_wdt_write(struct file *file, const char __user *buf,
return count;
}
-static
const
struct watchdog_info ident = {
+static struct watchdog_info ident = {
.options = WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING,
.identity = "PowerPC Book-E Watchdog",
};