diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-12 08:51:25 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-19 12:30:06 +0200 |
commit | 4a70324640e100f375e55e9b502d18c610a8432d (patch) | |
tree | b52e68cb51187664ff440accd598235944cbe40f /drivers/video/carminefb.c | |
parent | video: arkfb: remove unnecessary pci_set_drvdata() (diff) | |
download | linux-4a70324640e100f375e55e9b502d18c610a8432d.tar.xz linux-4a70324640e100f375e55e9b502d18c610a8432d.zip |
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>
Diffstat (limited to 'drivers/video/carminefb.c')
-rw-r--r-- | drivers/video/carminefb.c | 1 |
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); } |