From: Sachin Kamat Date: Fri, 20 Sep 2013 06:32:11 +0000 (+0530) Subject: video: grvga: Remove redundant dev_set_drvdata X-Git-Tag: firefly_0821_release~176^2~4980^2~74 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=22b67c0ab2e7480cc4b5ad1ca59ab0e4e0967556;p=firefly-linux-kernel-4.4.55.git video: grvga: Remove redundant dev_set_drvdata Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat Cc: Kristoffer Glembo Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/grvga.c b/drivers/video/grvga.c index b95eee7d901e..c078701f15f6 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;