diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-20 12:02:11 +0530 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-26 13:49:07 +0300 |
commit | 22b67c0ab2e7480cc4b5ad1ca59ab0e4e0967556 (patch) | |
tree | d10ce74f388310407a8245a6ad48645b276373f8 /drivers/video/grvga.c | |
parent | a36bf192553912dc28230fb852ad13ef078e28a9 (diff) | |
download | op-kernel-dev-22b67c0ab2e7480cc4b5ad1ca59ab0e4e0967556.zip op-kernel-dev-22b67c0ab2e7480cc4b5ad1ca59ab0e4e0967556.tar.gz |
video: grvga: Remove redundant dev_set_drvdata
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>
Diffstat (limited to 'drivers/video/grvga.c')
-rw-r--r-- | drivers/video/grvga.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/video/grvga.c b/drivers/video/grvga.c index b95eee7..c078701 100644 --- a/drivers/video/grvga.c +++ b/drivers/video/grvga.c @@ -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; |