video: tridentfb: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Thu, 12 Sep 2013 07:01:18 +0000 (16:01 +0900)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 19 Sep 2013 10:30:10 +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/tridentfb.c

index ab57d387d6b5ffc093407ad9b2a0d55ddb8fe50e..7ed9a227f5eaf006ed5c2a9759ee9db299d114e3 100644 (file)
@@ -1553,7 +1553,6 @@ static void trident_pci_remove(struct pci_dev *dev)
        iounmap(info->screen_base);
        release_mem_region(tridentfb_fix.smem_start, tridentfb_fix.smem_len);
        release_mem_region(tridentfb_fix.mmio_start, tridentfb_fix.mmio_len);
-       pci_set_drvdata(dev, NULL);
        kfree(info->pixmap.addr);
        fb_dealloc_cmap(&info->cmap);
        framebuffer_release(info);