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)
commitc04c697cf1fe8f0962ccd3c2392a9b637a5307aa
treeef888dace57a4b832a10eae7657c3e76fb5d8114
parent242b2287cd7f27521c8b54a4101d569e53e7a0ca
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