From: Hans de Goede Date: Wed, 21 May 2014 13:39:55 +0000 (+0200) Subject: ACPI / video: Unregister the backlight device if a raw one shows up later X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~2^3~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53a92ba7e3762154df01c4f4f5d871df0587c96b;p=pandora-kernel.git ACPI / video: Unregister the backlight device if a raw one shows up later When video.use_native_backlight=1 and non intel gfx are in use, the raw backlight device of the gfx driver will show up after acpi-video has done its acpi_video_verify_backlight_support() check. This causes video.use_native_backlight=1 to not have the desired result. This patch fixes this by adding a backlight notifier and when a raw backlight is registered or unregistered re-doing the acpi_video_verify_backlight_support() check. Signed-off-by: Hans de Goede Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed