summaryrefslogtreecommitdiff
path: root/drivers/ata/pata_winbond.c
diff options
context:
space:
mode:
authorMilind Arun Choudhary <milindchoudhary@gmail.com>2007-04-26 07:19:27 (GMT)
committerJeff Garzik <jeff@garzik.org>2007-04-28 19:16:40 (GMT)
commit225036314e768bbfe8331ea9b0e91ca101afe427 (patch)
treef18b7ec54e051519207d62efee853f2615ea6eda /drivers/ata/pata_winbond.c
parent4b22afd743a3882123a16135fa863558c0ac2d94 (diff)
downloadlinux-225036314e768bbfe8331ea9b0e91ca101afe427.tar.xz
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>
Diffstat (limited to 'drivers/ata/pata_winbond.c')
-rw-r--r--drivers/ata/pata_winbond.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_winbond.c b/drivers/ata/pata_winbond.c
index aa6d4bc..cc4ad27 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)
{