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:
e75e657
)
[WATCHDOG] at32ap700x_wdt.c - Fix compilation warnings
author
Wim Van Sebroeck
<
[email protected]
>
Tue, 3 Jul 2007 17:59:29 +0000
(17:59 +0000)
committer
Wim Van Sebroeck
<
[email protected]
>
Thu, 5 Jul 2007 05:37:44 +0000
(
05:37
+0000)
Fix warning:
* ISO C90 forbids mixed declarations and code
* passing argument 2 of ‘test_and_set_bit’ from incompatible pointer type
* passing argument 2 of ‘clear_bit’ from incompatible pointer type
Signed-off-by: Hans-Christian Egtvedt <
[email protected]
>
Cc: Haavard Skinnemoen <
[email protected]
>
Signed-off-by: Wim Van Sebroeck <
[email protected]
>
Cc: Andrew Morton <
[email protected]
>
drivers/char/watchdog/at32ap700x_wdt.c
patch
|
blob
|
history
diff --git
a/drivers/char/watchdog/at32ap700x_wdt.c
b/drivers/char/watchdog/at32ap700x_wdt.c
index 75e852e954e7300f7c1b30bd65fec81e7e50db04..54a516169d070e6d1b33625b4dc75bb1e451d3bf 100644
(file)
--- a/
drivers/char/watchdog/at32ap700x_wdt.c
+++ b/
drivers/char/watchdog/at32ap700x_wdt.c
@@
-56,7
+56,7
@@
struct wdt_at32ap700x {
void __iomem *regs;
spinlock_t io_lock;
int timeout;
-
int
users;
+
unsigned long
users;
struct miscdevice miscdev;
};
@@
-68,8
+68,10
@@
static char expect_release;
*/
static inline void at32_wdt_stop(void)
{
+ unsigned long psel;
+
spin_lock(&wdt->io_lock);
-
unsigned long
psel = wdt_readl(wdt, CTRL) & WDT_BF(CTRL_PSEL, 0x0f);
+ psel = wdt_readl(wdt, CTRL) & WDT_BF(CTRL_PSEL, 0x0f);
wdt_writel(wdt, CTRL, psel | WDT_BF(CTRL_KEY, 0x55));
wdt_writel(wdt, CTRL, psel | WDT_BF(CTRL_KEY, 0xaa));
spin_unlock(&wdt->io_lock);