From: Jingoo Han Date: Thu, 12 Sep 2013 06:51:25 +0000 (+0900) Subject: video: carminefb: remove unnecessary pci_set_drvdata() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4a70324640e100f375e55e9b502d18c610a8432d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Tomi Valkeinen --- 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); }