diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-12 07:01:18 (GMT) |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-19 10:30:10 (GMT) |
commit | e8473074924112d2f075be011f35db5bc9405577 (patch) | |
tree | 018e0f24b45e7da50a262b50205dfc1bef6bcf59 /drivers/video/tridentfb.c | |
parent | e09335a6fe88efb5db5c7e13ea58a5793f023c26 (diff) | |
download | linux-e8473074924112d2f075be011f35db5bc9405577.tar.xz |
video: tridentfb: 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/tridentfb.c')
-rw-r--r-- | drivers/video/tridentfb.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/video/tridentfb.c b/drivers/video/tridentfb.c index ab57d38..7ed9a22 100644 --- a/drivers/video/tridentfb.c +++ b/drivers/video/tridentfb.c @@ -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); |