summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-12 15:51:25 +0900
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-09-19 13:30:06 +0300
commit4a70324640e100f375e55e9b502d18c610a8432d (patch)
treeb52e68cb51187664ff440accd598235944cbe40f
parent8e6947764f4b69d612519e9202f6e9ae982b6cd4 (diff)
video: carminefb: remove unnecessary pci_set_drvdata()
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>
-rw-r--r--drivers/video/carminefb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/video/carminefb.c b/drivers/video/carminefb.c
index 153dd65b0ae8..b98f709abf52 100644
--- a/drivers/video/carminefb.c
+++ b/drivers/video/carminefb.c
@@ -746,7 +746,6 @@ static void carminefb_remove(struct pci_dev *dev)
iounmap(hw->v_regs);
release_mem_region(fix.mmio_start, fix.mmio_len);
- pci_set_drvdata(dev, NULL);
pci_disable_device(dev);
kfree(hw);
}