Skip to content

Commit 36cbaa8

Browse files
author
Wim Van Sebroeck
committed
[WATCHDOG] pcwd.c - fix open_allowed type.
Fix following warnings: drivers/watchdog/pcwd.c: In function 'pcwd_open': drivers/watchdog/pcwd.c:703: warning: passing argument 2 of 'test_and_set_bit' from incompatible pointer type drivers/watchdog/pcwd.c: In function 'pcwd_close': drivers/watchdog/pcwd.c:723: warning: passing argument 2 of 'clear_bit' from incompatible pointer type Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
1 parent 9229376 commit 36cbaa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/watchdog/pcwd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ static const int heartbeat_tbl[] = {
168168
static int cards_found;
169169

170170
/* internal variables */
171-
static atomic_t open_allowed = ATOMIC_INIT(1);
171+
static unsigned long open_allowed;
172172
static char expect_close;
173173
static int temp_panic;
174174

0 commit comments

Comments
 (0)