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