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.stricted.de/?a=commitdiff_plain;h=225036314e768bbfe8331ea9b0e91ca101afe427;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.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 aa6d4bca2ea..cc4ad271afb 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) {