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

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/mb862xx/mb862xxfbdrv.c

index 98d2f8c2ed75daca30250f782778f3ff5867efcc..0cd4c33185112f92919a81ff7fc5b5fd33ad5ead 100644 (file)
@@ -781,7 +781,6 @@ rel_reg:
 irqdisp:
        irq_dispose_mapping(par->irq);
 fbrel:
-       dev_set_drvdata(dev, NULL);
        framebuffer_release(info);
        return ret;
 }
@@ -814,7 +813,6 @@ static int of_platform_mb862xx_remove(struct platform_device *ofdev)
        iounmap(par->mmio_base);
        iounmap(par->fb_base);
 
-       dev_set_drvdata(&ofdev->dev, NULL);
        release_mem_region(par->res->start, res_size);
        framebuffer_release(fbi);
        return 0;