X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fwatchdog%2Fsbc8360.c;h=2ee2677f3648168daef037c94777de02375ba4b3;hb=1ff8419871ea757ae0298aa296bcff9b2ca48561;hp=285d85289532da3aadab9c7b0f1e73373fee1d84;hpb=ab08ed1770140ebcf1be1657087689832b755874;p=linux-2.6 diff --git a/drivers/watchdog/sbc8360.c b/drivers/watchdog/sbc8360.c index 285d852895..2ee2677f36 100644 --- a/drivers/watchdog/sbc8360.c +++ b/drivers/watchdog/sbc8360.c @@ -54,7 +54,7 @@ #include static unsigned long sbc8360_is_open; -static spinlock_t sbc8360_lock; +static DEFINE_SPINLOCK(sbc8360_lock); static char expect_close; #define PFX "sbc8360: " @@ -359,7 +359,6 @@ static int __init sbc8360_init(void) goto out_noreboot; } - spin_lock_init(&sbc8360_lock); res = misc_register(&sbc8360_miscdev); if (res) { printk(KERN_ERR PFX "failed to register misc device\n");