[PATCH] gma500: fix build when ACPI isn't set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Sasha Levin <levinsasha928@xxxxxxxxx>
---
 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

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux