diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-12 07:00:58 (GMT) |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-19 10:30:10 (GMT) |
commit | e09335a6fe88efb5db5c7e13ea58a5793f023c26 (patch) | |
tree | e3fa331d2e3886f4254a68c67084a07bb903af9b /drivers/video/tdfxfb.c | |
parent | f9af73c6f688630fbf84aa2361772613b36021ee (diff) | |
download | linux-fsl-qoriq-e09335a6fe88efb5db5c7e13ea58a5793f023c26.tar.xz |
video: tdfxfb: 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/tdfxfb.c')
-rw-r--r-- | drivers/video/tdfxfb.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/video/tdfxfb.c b/drivers/video/tdfxfb.c index 64bc28b..f761fe3 100644 --- a/drivers/video/tdfxfb.c +++ b/drivers/video/tdfxfb.c @@ -1646,7 +1646,6 @@ static void tdfxfb_remove(struct pci_dev *pdev) pci_resource_len(pdev, 1)); release_mem_region(pci_resource_start(pdev, 0), pci_resource_len(pdev, 0)); - pci_set_drvdata(pdev, NULL); fb_dealloc_cmap(&info->cmap); framebuffer_release(info); } |