[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1266399763-28911-1-git-send-email-daniel@caiaq.de>
Date: Wed, 17 Feb 2010 10:42:43 +0100
From: Daniel Mack <daniel@...aq.de>
To: linux-kernel@...r.kernel.org
Cc: Daniel Mack <daniel@...aq.de>, David Airlie <airlied@...ux.ie>,
Ben Skeggs <bskeggs@...hat.com>,
Francisco Jerez <currojerez@...eup.net>,
Maarten Maathuis <madman2003@...il.com>,
Xavier Chantry <shiningxc@...il.com>,
Marcin Slusarz <marcin.slusarz@...il.com>,
dri-devel@...ts.sourceforge.net
Subject: [PATCH] nouveau: fix undefined reference to acpi_lid_open
Fix the following compile time error:
drivers/built-in.o: In function `nouveau_connector_detect':
/home/daniel/src/linux/jup/linux-2.6/drivers/gpu/drm/nouveau/nouveau_connector.c:243: undefined reference to `acpi_lid_open'
Signed-off-by: Daniel Mack <daniel@...aq.de>
Cc: David Airlie <airlied@...ux.ie>
Cc: Ben Skeggs <bskeggs@...hat.com>
Cc: Francisco Jerez <currojerez@...eup.net>
Cc: Maarten Maathuis <madman2003@...il.com>
Cc: Xavier Chantry <shiningxc@...il.com>
Cc: Marcin Slusarz <marcin.slusarz@...il.com>
Cc: dri-devel@...ts.sourceforge.net
---
drivers/gpu/drm/nouveau/nouveau_connector.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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
--
1.6.5.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists