From: Jingoo Han Date: Thu, 12 Sep 2013 07:00:58 +0000 (+0900) Subject: video: tdfxfb: remove unnecessary pci_set_drvdata() X-Git-Tag: v3.13-rc1~93^2~121 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e09335a6fe88efb5db5c7e13ea58a5793f023c26;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: Tomi Valkeinen --- 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); }