]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
video: i740fb: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Thu, 12 Sep 2013 06:54:53 +0000 (15:54 +0900)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 19 Sep 2013 10:30:07 +0000 (13:30 +0300)
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/i740fb.c

index 6c48388189505f4b92fa4746252700e15c1d9235..6501ac1dba0f9fae54ca95984580ba46a8b2e1b6 100644 (file)
@@ -1194,7 +1194,6 @@ static void i740fb_remove(struct pci_dev *dev)
                pci_iounmap(dev, info->screen_base);
                pci_release_regions(dev);
 /*             pci_disable_device(dev); */
-               pci_set_drvdata(dev, NULL);
                framebuffer_release(info);
        }
 }