]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ata/libata-core.c
KVM: s390: fix interrupt delivery
[linux-2.6-omap-h63xx.git] / drivers / ata / libata-core.c
index 3c89f205c83fd73cb9ef0976ada0115cf4f42cac..cc816ca623d322c538deffe2daa263178d8db0ed 100644 (file)
@@ -5403,7 +5403,7 @@ static void ata_host_stop(struct device *gendev, void *res)
  */
 static void ata_finalize_port_ops(struct ata_port_operations *ops)
 {
-       static spinlock_t lock = SPIN_LOCK_UNLOCKED;
+       static DEFINE_SPINLOCK(lock);
        const struct ata_port_operations *cur;
        void **begin = (void **)ops;
        void **end = (void **)&ops->inherits;