diff options
author | Milind Arun Choudhary <milindchoudhary@gmail.com> | 2007-04-26 09:19:27 +0200 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-28 21:16:40 +0200 |
commit | 225036314e768bbfe8331ea9b0e91ca101afe427 (patch) | |
tree | f18b7ec54e051519207d62efee853f2615ea6eda /drivers/ata/pata_winbond.c | |
parent | drivers/ata/pata_cmd640.c: fix build with CONFIG_PM=n (diff) | |
download | linux-225036314e768bbfe8331ea9b0e91ca101afe427.tar.xz linux-225036314e768bbfe8331ea9b0e91ca101afe427.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |