]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6118d534ccb3749c64940f2030b516aab5824b73
tree75d84c1f3d6cf94cbeeee8307a695b4b0569bfd7
parent6c5930942d09b0e525570ffeec74a571adae1adf
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