PCI: pcie: remove SPIN_LOCK_UNLOCKED
Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6f6f8c2f4b
commit
f5609d7e67
@@ -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,
|
* Initialize Root lock access, e_lock, to Root Error Status Reg,
|
||||||
* Root Error ID Reg, and Root error producer/consumer index.
|
* 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;
|
rpc->rpd = dev;
|
||||||
INIT_WORK(&rpc->dpc_handler, aer_isr);
|
INIT_WORK(&rpc->dpc_handler, aer_isr);
|
||||||
|
|||||||
Reference in New Issue
Block a user