ACPI: Add the reference count to avoid unloading ACPI video bus twice
[pandora-kernel.git] / drivers / gpu / drm / i915 / i915_opregion.c
index dc425e7..e4b4e88 100644 (file)
@@ -419,7 +419,7 @@ void intel_opregion_free(struct drm_device *dev, int suspend)
                return;
 
        if (!suspend)
-               acpi_video_exit();
+               acpi_video_unregister();
 
        opregion->acpi->drdy = 0;