mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
ACPI / IPMI: Cleanup some initialization codes
This (trivial) patch. 1. Changes dynamic mutex initialization to static initialization. 2. Removes one acpi_ipmi_init() variable initialization as it is not needed. Signed-off-by: Lv Zheng <lv.zheng@intel.com> Reviewed-by: Huang Ying <ying.huang@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
2fb037b89a
commit
a194aa4327
@ -127,6 +127,7 @@ static struct ipmi_driver_data driver_data = {
|
||||
.ipmi_hndlrs = {
|
||||
.ipmi_recv_hndl = ipmi_msg_handler,
|
||||
},
|
||||
.ipmi_lock = __MUTEX_INITIALIZER(driver_data.ipmi_lock)
|
||||
};
|
||||
|
||||
static struct acpi_ipmi_device *
|
||||
@ -591,13 +592,11 @@ out_msg:
|
||||
|
||||
static int __init acpi_ipmi_init(void)
|
||||
{
|
||||
int result = 0;
|
||||
int result;
|
||||
acpi_status status;
|
||||
|
||||
if (acpi_disabled)
|
||||
return result;
|
||||
|
||||
mutex_init(&driver_data.ipmi_lock);
|
||||
return 0;
|
||||
|
||||
status = acpi_install_address_space_handler(ACPI_ROOT_OBJECT,
|
||||
ACPI_ADR_SPACE_IPMI, &acpi_ipmi_space_handler,
|
||||
|
Loading…
Reference in New Issue
Block a user