|
@@ -334,8 +334,6 @@ static int acpi_button_resume(struct device *dev)
|
|
struct acpi_button *button = acpi_driver_data(device);
|
|
struct acpi_button *button = acpi_driver_data(device);
|
|
|
|
|
|
button->suspended = false;
|
|
button->suspended = false;
|
|
- if (button->type == ACPI_BUTTON_TYPE_LID)
|
|
|
|
- return acpi_lid_send_state(device);
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
@@ -416,7 +414,6 @@ static int acpi_button_add(struct acpi_device *device)
|
|
if (error)
|
|
if (error)
|
|
goto err_remove_fs;
|
|
goto err_remove_fs;
|
|
if (button->type == ACPI_BUTTON_TYPE_LID) {
|
|
if (button->type == ACPI_BUTTON_TYPE_LID) {
|
|
- acpi_lid_send_state(device);
|
|
|
|
/*
|
|
/*
|
|
* This assumes there's only one lid device, or if there are
|
|
* This assumes there's only one lid device, or if there are
|
|
* more we only care about the last one...
|
|
* more we only care about the last one...
|