video: xilinxfb: Remove redundant dev_set_drvdata
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 20 Sep 2013 06:32:24 +0000 (12:02 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 26 Sep 2013 10:49:27 +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/xilinxfb.c

index 84c664ea8eb9d014e101f3d22f614352cde306ef..0e1dd3380a1e51effe34ebdbc6b93068089362ee 100644 (file)
@@ -369,7 +369,6 @@ err_fbmem:
 
 err_region:
        kfree(drvdata);
-       dev_set_drvdata(dev, NULL);
 
        return rc;
 }
@@ -404,7 +403,6 @@ static int xilinxfb_release(struct device *dev)
 #endif
 
        kfree(drvdata);
-       dev_set_drvdata(dev, NULL);
 
        return 0;
 }