From: Milind Arun Choudhary Date: Thu, 26 Apr 2007 07:19:27 +0000 (-0700) Subject: SPIN_LOCK_UNLOCKED cleanup in drivers/ata/pata_winbond.c X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=225036314e768bbfe8331ea9b0e91ca101afe427;p=linux-beck.git SPIN_LOCK_UNLOCKED cleanup in drivers/ata/pata_winbond.c remove SPIN_LOCK_UNLOCKED, use DEFINE_SPINLOCK instead Signed-off-by: Milind Arun Choudhary Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/pata_winbond.c b/drivers/ata/pata_winbond.c index aa6d4bca2ea3..cc4ad271afb5 100644 --- a/drivers/ata/pata_winbond.c +++ b/drivers/ata/pata_winbond.c @@ -35,7 +35,7 @@ static int probe_winbond = 1; static int probe_winbond; #endif -static spinlock_t winbond_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(winbond_lock); static void winbond_writecfg(unsigned long port, u8 reg, u8 val) {