* [PATCH v1] ACPI: video: Clear driver_data pointer on remove
@ 2026-02-13 18:25 Rafael J. Wysocki
0 siblings, 0 replies; only message in thread
From: Rafael J. Wysocki @ 2026-02-13 18:25 UTC (permalink / raw)
To: Linux ACPI; +Cc: LKML, Hans de Goede, Armin Wolf
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
After commit 02c057ddefef ("ACPI: video: Convert the driver to a
platform one") the driver_data pointer in the ACPI companion device
object is not cleared automatically on driver remove any more, so
clear it directly in acpi_video_bus_remove().
Fixes: 02c057ddefef ("ACPI: video: Convert the driver to a platform one")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
Applies on top of the current mainline.
---
drivers/acpi/acpi_video.c | 1 +
1 file changed, 1 insertion(+)
--- a/drivers/acpi/acpi_video.c
+++ b/drivers/acpi/acpi_video.c
@@ -2116,6 +2116,7 @@ static void acpi_video_bus_remove(struct
kfree(video->attached_array);
kfree(video);
+ device->driver_data = NULL;
}
static int __init is_i740(struct pci_dev *dev)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-02-13 18:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-13 18:25 [PATCH v1] ACPI: video: Clear driver_data pointer on remove Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®