Commit 96228223 authored by Zheng Yongjun's avatar Zheng Yongjun Committed by Rafael J. Wysocki

PNP: pnpbios: Use DEFINE_SPINLOCK() for spinlock

spinlock can be initialized automatically with DEFINE_SPINLOCK()
rather than explicitly calling spin_lock_init().
Signed-off-by: default avatarZheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent b1f4213c
...@@ -72,7 +72,7 @@ __visible u32 pnp_bios_fault_esp; ...@@ -72,7 +72,7 @@ __visible u32 pnp_bios_fault_esp;
__visible u32 pnp_bios_fault_eip; __visible u32 pnp_bios_fault_eip;
__visible u32 pnp_bios_is_utter_crap = 0; __visible u32 pnp_bios_is_utter_crap = 0;
static spinlock_t pnp_bios_lock; static DEFINE_SPINLOCK(pnp_bios_lock);
/* /*
* Support Functions * Support Functions
...@@ -473,7 +473,6 @@ void pnpbios_calls_init(union pnp_bios_install_struct *header) ...@@ -473,7 +473,6 @@ void pnpbios_calls_init(union pnp_bios_install_struct *header)
{ {
int i; int i;
spin_lock_init(&pnp_bios_lock);
pnp_bios_callpoint.offset = header->fields.pm16offset; pnp_bios_callpoint.offset = header->fields.pm16offset;
pnp_bios_callpoint.segment = PNP_CS16; pnp_bios_callpoint.segment = PNP_CS16;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment