diff options
author | Hans de Goede <hdegoede@redhat.com> | 2022-04-29 13:00:15 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-09-02 09:57:14 +0200 |
commit | 6cb634d0dc850cc1ae54868de7815df53e64a465 (patch) | |
tree | 3ffc41760b9f398c66d4d453abe4ae67f3f159a9 /drivers/acpi/acpi_video.c | |
parent | ACPI: video: Make backlight class device registration a separate step (v2) (diff) | |
download | linux-dev-6cb634d0dc850cc1ae54868de7815df53e64a465.tar.xz linux-dev-6cb634d0dc850cc1ae54868de7815df53e64a465.zip |
ACPI: video: Remove code to unregister acpi_video backlight when a native backlight registers
Remove the code to unregister acpi_video backlight devices when
a native backlight device gets registered later.
Now that the acpi_video backlight device registration is a separate step
which runs later, after the drm/kms driver is done setting up its own
native backlight device, it is no longer necessary to monitor for a
native (BACKLIGHT_RAW) device showing up later and to then unregister
the acpi_video backlight device(s).
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/acpi/acpi_video.c')
-rw-r--r-- | drivers/acpi/acpi_video.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/acpi/acpi_video.c b/drivers/acpi/acpi_video.c index 09dd86f86cf3..d1e41f30c004 100644 --- a/drivers/acpi/acpi_video.c +++ b/drivers/acpi/acpi_video.c @@ -94,7 +94,6 @@ static void acpi_video_bus_notify(struct acpi_device *device, u32 event); static void acpi_video_bus_register_backlight_work(struct work_struct *ignored); static DECLARE_DELAYED_WORK(video_bus_register_backlight_work, acpi_video_bus_register_backlight_work); -void acpi_video_detect_exit(void); /* * Indices in the _BCL method response: the first two items are special, @@ -2342,7 +2341,6 @@ static int __init acpi_video_init(void) static void __exit acpi_video_exit(void) { - acpi_video_detect_exit(); acpi_video_unregister(); } |