diff mbox

nouveau: fix undefined reference to acpi_lid_open

Message ID 1266399763-28911-1-git-send-email-daniel@caiaq.de (mailing list archive)
State New, archived
Headers show

Commit Message

Daniel Mack Feb. 17, 2010, 9:42 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c
index d2f6335..c74d45d 100644
--- a/drivers/gpu/drm/nouveau/nouveau_connector.c
+++ b/drivers/gpu/drm/nouveau/nouveau_connector.c
@@ -239,7 +239,7 @@  nouveau_connector_detect(struct drm_connector *connector)
 	if (connector->connector_type == DRM_MODE_CONNECTOR_LVDS)
 		nv_encoder = find_encoder_by_type(connector, OUTPUT_LVDS);
 	if (nv_encoder && nv_connector->native_mode) {
-#ifdef CONFIG_ACPI
+#ifdef CONFIG_ACPI_BUTTON
 		if (!nouveau_ignorelid && !acpi_lid_open())
 			return connector_status_disconnected;
 #endif