video: rivafb: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Wed, 8 Jan 2014 00:45:55 +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/riva/fbdev.c

index a5514acd2ac685447a341a2373fc0d55ffbd2018..8a8d7f060784399b29b29124e7544cf2c3127a89 100644 (file)
@@ -2128,7 +2128,6 @@ static void rivafb_remove(struct pci_dev *pd)
        pci_release_regions(pd);
        kfree(info->pixmap.addr);
        framebuffer_release(info);
-       pci_set_drvdata(pd, NULL);
        NVTRACE_LEAVE();
 }