]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/watchdog/pnx4008_wdt.c
[ARM] 4914/1: AT91: Update defconfigs (Part 1)
[linux-2.6-omap-h63xx.git] / drivers / watchdog / pnx4008_wdt.c
index b0eb9f9b43c756b8f5c008f8602d05df5eab78ee..b04aa096a10a491a739d12eab9bda3e7a763c31a 100644 (file)
@@ -80,7 +80,7 @@
 static int nowayout = WATCHDOG_NOWAYOUT;
 static int heartbeat = DEFAULT_HEARTBEAT;
 
-static spinlock_t io_lock;
+static DEFINE_SPINLOCK(io_lock);
 static unsigned long wdt_status;
 #define WDT_IN_USE        0
 #define WDT_OK_TO_CLOSE   1
@@ -254,8 +254,6 @@ static int pnx4008_wdt_probe(struct platform_device *pdev)
        int ret = 0, size;
        struct resource *res;
 
-       spin_lock_init(&io_lock);
-
        if (heartbeat < 1 || heartbeat > MAX_HEARTBEAT)
                heartbeat = DEFAULT_HEARTBEAT;