video: platinumfb: Remove redundant dev_set_drvdata
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 20 Sep 2013 06:32:21 +0000 (12:02 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 26 Sep 2013 10:49:25 +0000 (13:49 +0300)
Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/platinumfb.c

index 3d86bac62d3e62214564bf1f336488d6ee819eeb..b644037dd5bc1385634d74aa65feaf415de57d9e 100644 (file)
@@ -639,7 +639,6 @@ static int platinumfb_probe(struct platform_device* odev)
                iounmap(pinfo->frame_buffer);
                iounmap(pinfo->platinum_regs);
                iounmap(pinfo->cmap_regs);
-               dev_set_drvdata(&odev->dev, NULL);
                framebuffer_release(info);
        }