video: kyrofb: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Thu, 12 Sep 2013 06:56:32 +0000 (15:56 +0900)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 19 Sep 2013 10:30:08 +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/kyro/fbdev.c

index 6157f74ac600529d66f8d71fa8f6d3d5d95a5e5a..c82f0400d7d211fd6e84ad7c52f54e8f3aae774e 100644 (file)
@@ -779,7 +779,6 @@ static void kyrofb_remove(struct pci_dev *pdev)
 #endif
 
        unregister_framebuffer(info);
-       pci_set_drvdata(pdev, NULL);
        framebuffer_release(info);
 }