]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
ACPI: video: Clear driver_data pointer on remove
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 13 Feb 2026 18:25:43 +0000 (19:25 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 13 Feb 2026 21:18:13 +0000 (22:18 +0100)
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>
Link: https://patch.msgid.link/12840288.O9o76ZdvQC@rafael.j.wysocki
drivers/acpi/acpi_video.c

index 69469757b96526de2562634503dfaef1b4ac6cfb..3d6e7306f29ab934a9d396690df846810148af8d 100644 (file)
@@ -2116,6 +2116,7 @@ static void acpi_video_bus_remove(struct platform_device *pdev)
 
        kfree(video->attached_array);
        kfree(video);
+       device->driver_data = NULL;
 }
 
 static int __init is_i740(struct pci_dev *dev)