Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9d1e492 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Jesse Barnes
Browse files

PCI: Replace old style lock initializer



SPIN_LOCK_UNLOCKED is deprecated. Use DEFINE_SPINLOCK instead.

Make the lock static while at it.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 5b5d9448
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2625,7 +2625,7 @@ int pci_set_vga_state(struct pci_dev *dev, bool decode,

#define RESOURCE_ALIGNMENT_PARAM_SIZE COMMAND_LINE_SIZE
static char resource_alignment_param[RESOURCE_ALIGNMENT_PARAM_SIZE] = {0};
spinlock_t resource_alignment_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(resource_alignment_lock);

/**
 * pci_specified_resource_alignment - get resource alignment specified by user.