From: Jingoo Han Date: Thu, 12 Sep 2013 06:54:53 +0000 (+0900) Subject: video: i740fb: remove unnecessary pci_set_drvdata() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6a20807905b6cf84026f78f25aee2ccc0e4d0d3e;p=linux-beck.git 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 --- 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); } }