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

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Kristoffer Glembo <kristoffer@gaisler.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/grvga.c

index b95eee7d901e292d19983ef929e2214315964eb4..c078701f15f6fcfc00a214986233bb3e54ce5aa5 100644 (file)
@@ -496,7 +496,6 @@ static int grvga_probe(struct platform_device *dev)
        return 0;
 
 free_mem:
-       dev_set_drvdata(&dev->dev, NULL);
        if (grvga_fix_addr)
                iounmap((void *)virtual_start);
        else
@@ -530,7 +529,6 @@ static int grvga_remove(struct platform_device *device)
                        kfree((void *)info->screen_base);
 
                framebuffer_release(info);
-               dev_set_drvdata(&device->dev, NULL);
        }
 
        return 0;