video: neofb: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Thu, 12 Sep 2013 06:57:54 +0000 (15:57 +0900)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 19 Sep 2013 10:30:09 +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/neofb.c

index 7ef079c146e7242c9edee33cc43bc0cd3c850ce1..891b0bf841e3b67bf76a33e7a54caf89f6e19002 100644 (file)
@@ -2146,12 +2146,6 @@ static void neofb_remove(struct pci_dev *dev)
                fb_destroy_modedb(info->monspecs.modedb);
                neo_unmap_mmio(info);
                neo_free_fb_info(info);
-
-               /*
-                * Ensure that the driver data is no longer
-                * valid.
-                */
-               pci_set_drvdata(dev, NULL);
        }
 }