public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nouveau: fix undefined reference to acpi_lid_open
@ 2010-02-17  9:42 Daniel Mack
  2010-02-17 22:04 ` Marcin Slusarz
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Mack @ 2010-02-17  9:42 UTC (permalink / raw)
  To: linux-kernel
  Cc: Daniel Mack, David Airlie, Ben Skeggs, Francisco Jerez,
	Maarten Maathuis, Xavier Chantry, Marcin Slusarz, dri-devel

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@caiaq.de>
Cc: David Airlie <airlied@linux.ie>
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: Francisco Jerez <currojerez@riseup.net>
Cc: Maarten Maathuis <madman2003@gmail.com>
Cc: Xavier Chantry <shiningxc@gmail.com>
Cc: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: dri-devel@lists.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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-17 22:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-17  9:42 [PATCH] nouveau: fix undefined reference to acpi_lid_open Daniel Mack
2010-02-17 22:04 ` Marcin Slusarz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox