PCI: cpqphp: Use DEFINE_SPINLOCK() for int15_lock
authorGuobin Huang <huangguobin4@huawei.com>
Tue, 6 Apr 2021 12:06:37 +0000 (20:06 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 14 Apr 2021 20:24:10 +0000 (15:24 -0500)
commit3a306a5b60165a79c963585ac1863a12bba0ae7e
tree75d84c1f3d6cf94cbeeee8307a695b4b0569bfd7
parent3bbfd319034ddce59e023837a4aa11439460509b
PCI: cpqphp: Use DEFINE_SPINLOCK() for int15_lock

Initialize the static int15_lock spinlock with DEFINE_SPINLOCK() rather
than explicitly calling spin_lock_init().

Link: https://lore.kernel.org/r/1617710797-48903-1-git-send-email-huangguobin4@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Guobin Huang <huangguobin4@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/cpqphp_nvram.c