mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
Call acpi_video_register() in intel_opregion_init() failure path
If i915 opregion is present, the acpi_video driver doesn't register itself immediately; it defers that until the i915 opregion code is done. But if that *fails*, the acpi_video driver was never getting registered. And thus I have no backlight support on my Lenovo IdeaPad S10-3. Call acpi_video_register() on the failure path, and it works again. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org> Acked-by: Matthew Garrett <mjg@redhat.com>
This commit is contained in:
parent
2016e4a0a1
commit
54b9b308fa
1 changed files with 1 additions and 0 deletions
|
@ -535,6 +535,7 @@ int intel_opregion_init(struct drm_device *dev, int resume)
|
||||||
err_out:
|
err_out:
|
||||||
iounmap(opregion->header);
|
iounmap(opregion->header);
|
||||||
opregion->header = NULL;
|
opregion->header = NULL;
|
||||||
|
acpi_video_register();
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue