]> git.baikalelectronics.ru Git - kernel.git/commit
Call acpi_video_register() in intel_opregion_init() failure path
authorDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 12 Aug 2010 23:56:54 +0000 (00:56 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 13 Aug 2010 00:10:10 +0000 (01:10 +0100)
commitc5d683668c0894faa56de28cd1490934411c6b41
tree57b2b742864296233efc5033511b3a14b8717160
parent84b112862123f20da8b6b799b229f5f9491e69fd
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>
drivers/gpu/drm/i915/i915_opregion.c