From 6a20807905b6cf84026f78f25aee2ccc0e4d0d3e Mon Sep 17 00:00:00 2001 From: Jingoo Han Date: Thu, 12 Sep 2013 15:54:53 +0900 Subject: [PATCH] video: i740fb: 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 --- drivers/video/i740fb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/i740fb.c b/drivers/video/i740fb.c index 6c4838818950..6501ac1dba0f 100644 --- a/drivers/video/i740fb.c +++ b/drivers/video/i740fb.c @@ -1194,7 +1194,6 @@ static void i740fb_remove(struct pci_dev *dev) pci_iounmap(dev, info->screen_base); pci_release_regions(dev); /* pci_disable_device(dev); */ - pci_set_drvdata(dev, NULL); framebuffer_release(info); } } -- 2.20.1