]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
video: nvidiafb: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Wed, 8 Jan 2014 00:45:15 +0000 (09:45 +0900)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 17 Jan 2014 08:57:39 +0000 (10:57 +0200)
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/nvidia/nvidia.c

index ff228713425ebb31e079d9e9eeea5d581a8ba756..def04120467699580abdd4558de05d38f1e91b9a 100644 (file)
@@ -1461,7 +1461,6 @@ static void nvidiafb_remove(struct pci_dev *pd)
        pci_release_regions(pd);
        kfree(info->pixmap.addr);
        framebuffer_release(info);
-       pci_set_drvdata(pd, NULL);
        NVTRACE_LEAVE();
 }