]> git.karo-electronics.de Git - linux-beck.git/commitdiff
video: i810fb: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Thu, 12 Sep 2013 06:55:29 +0000 (15:55 +0900)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 19 Sep 2013 10:30:07 +0000 (13:30 +0300)
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>
drivers/video/i810/i810_main.c

index 4ce3438ade6f31fc8bac432a468f719d777e7cea..038192ac73694aa8a367b7d5d536c7be9f7c9b57 100644 (file)
@@ -2129,7 +2129,6 @@ static void __exit i810fb_remove_pci(struct pci_dev *dev)
 
        unregister_framebuffer(info);  
        i810fb_release_resource(info, par);
-       pci_set_drvdata(dev, NULL);
        printk("cleanup_module:  unloaded i810 framebuffer device\n");
 }