PCI: pcie: remove SPIN_LOCK_UNLOCKED
authorMilind Arun Choudhary <milindchoudhary@gmail.com>
Mon, 9 Jul 2007 18:55:54 +0000 (11:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:02:11 +0000 (16:02 -0700)
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pcie/aer/aerdrv.c

index db6ad8e763ac91dd7d86a4ab55469e1e1dd8128b..6846fb42b399313202ae019fecddb58d3c27eac0 100644 (file)
@@ -157,7 +157,7 @@ static struct aer_rpc* aer_alloc_rpc(struct pcie_device *dev)
         * Initialize Root lock access, e_lock, to Root Error Status Reg,
         * Root Error ID Reg, and Root error producer/consumer index.
         */
-       rpc->e_lock = SPIN_LOCK_UNLOCKED;
+       spin_lock_init(&rpc->e_lock);
 
        rpc->rpd = dev;
        INIT_WORK(&rpc->dpc_handler, aer_isr);