Commit 57976602 authored by Randy Dunlap's avatar Randy Dunlap Committed by Dave Airlie
Browse files

nouveau: fix acpi_lid_open undefined

When CONFIG_ACPI_BUTTON=m (and probably when ACPI_BUTTON is not enabled)
and NOUVEAU is built-in (not as a loadable module):

nouveau_connector.c:(.text+0xe17ce): undefined reference to `acpi_lid_open'
Signed-off-by: default avatarRandy Dunlap <>
Acked-by: default avatarBen Skeggs <>
Signed-off-by: default avatarDave Airlie <>
parent 10b06122
......@@ -241,7 +241,8 @@ nouveau_connector_detect(struct drm_connector *connector)
if (nv_encoder && nv_connector->native_mode) {
unsigned status = connector_status_connected;
#if defined(CONFIG_ACPI_BUTTON) || \
if (!nouveau_ignorelid && !acpi_lid_open())
status = connector_status_unknown;
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