From: Wim Van Sebroeck Date: Sun, 10 Aug 2008 21:57:03 +0000 (+0000) Subject: [WATCHDOG] pcwd.c - fix open_allowed type. X-Git-Tag: v2.6.27-rc3~55^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=36cbaa8777dd5a79cb56c2a3d7d56f0c80b2bab6;p=linux-2.6-omap-h63xx.git [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 --- diff --git a/drivers/watchdog/pcwd.c b/drivers/watchdog/pcwd.c index 3b0ddc7fcf3..9e1331a3b21 100644 --- a/drivers/watchdog/pcwd.c +++ b/drivers/watchdog/pcwd.c @@ -168,7 +168,7 @@ static const int heartbeat_tbl[] = { static int cards_found; /* internal variables */ -static atomic_t open_allowed = ATOMIC_INIT(1); +static unsigned long open_allowed; static char expect_close; static int temp_panic;