mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 15:10:38 +00:00
SPIN_LOCK_UNLOCKED cleanup in drivers/ata/pata_winbond.c
remove SPIN_LOCK_UNLOCKED, use DEFINE_SPINLOCK instead Signed-off-by: Milind Arun Choudhary <milindchoudhary@gmail.com> Acked-by: Alan Cox <alan@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
4b22afd743
commit
225036314e
@ -35,7 +35,7 @@ static int probe_winbond = 1;
|
|||||||
static int probe_winbond;
|
static int probe_winbond;
|
||||||
#endif
|
#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)
|
static void winbond_writecfg(unsigned long port, u8 reg, u8 val)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user