[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1336711142-26788-1-git-send-email-levinsasha928@gmail.com>
Date: Fri, 11 May 2012 06:39:02 +0200
From: Sasha Levin <levinsasha928@...il.com>
To: airlied@...ux.ie, alan@...ux.intel.com,
kirill.shutemov@...ux.intel.com
Cc: airlied@...hat.com, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org, Sasha Levin <levinsasha928@...il.com>
Subject: [PATCH] gma500: fix build when ACPI isn't set
Signed-off-by: Sasha Levin <levinsasha928@...il.com>
---
drivers/gpu/drm/gma500/opregion.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/gma500/opregion.c b/drivers/gpu/drm/gma500/opregion.c
index 05661bf..e2fbf4d 100644
--- a/drivers/gpu/drm/gma500/opregion.c
+++ b/drivers/gpu/drm/gma500/opregion.c
@@ -258,6 +258,7 @@ void psb_intel_opregion_init(struct drm_device *dev)
if (!opregion->header)
return;
+#ifdef CONFIG_ACPI
if (opregion->acpi) {
/* Notify BIOS we are ready to handle ACPI video ext notifs.
* Right now, all the events are handled by the ACPI video
@@ -268,6 +269,7 @@ void psb_intel_opregion_init(struct drm_device *dev)
system_opregion = opregion;
register_acpi_notifier(&psb_intel_opregion_notifier);
}
+#endif
if (opregion->asle)
psb_intel_opregion_enable_asle(dev);
@@ -281,12 +283,14 @@ void psb_intel_opregion_fini(struct drm_device *dev)
if (!opregion->header)
return;
+#ifdef CONFIG_ACPI
if (opregion->acpi) {
opregion->acpi->drdy = 0;
system_opregion = NULL;
unregister_acpi_notifier(&psb_intel_opregion_notifier);
}
+#endif
/* just clear all opregion memory pointers now */
iounmap(opregion->header);
--
1.7.8.5
--
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