]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / video: Always call acpi_video_init_brightness() on init
authorMatthew Garrett <matthew.garrett@nebula.com>
Tue, 16 Jul 2013 17:08:16 +0000 (17:08 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 17 Jul 2013 23:31:47 +0000 (01:31 +0200)
commitc5f7845ad916389268c63fb21c0bf2840bc97e03
treeef888dace57a4b832a10eae7657c3e76fb5d8114
parentdaf18dd4743610e0384f4225e1c85366483f3f1a
ACPI / video: Always call acpi_video_init_brightness() on init

We have to call acpi_video_init_brightness() even if we're not going
to initialise the backlight - Thinkpads seem to use this as the
trigger for enabling ACPI notifications rather than handling it in
firmware.

[rjw: Drop the brightness object created by
 acpi_video_init_brightness() if we are not going to use it.]
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/video.c