diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-20 02:32:10 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-26 06:48:49 -0400 |
commit | a36bf192553912dc28230fb852ad13ef078e28a9 (patch) | |
tree | c2b6278ae398ce314622d2a00164c253345ff544 /drivers/video/atmel_lcdfb.c | |
parent | aeac9e3f8919cecabca5eed080bb28634ab4d3ce (diff) |
video: atmel_lcdfb: 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>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/atmel_lcdfb.c')
-rw-r--r-- | drivers/video/atmel_lcdfb.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index df05550b82e6..3f7d6dc3408d 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c | |||
@@ -1089,7 +1089,7 @@ static int __init atmel_lcdfb_probe(struct platform_device *pdev) | |||
1089 | ret = register_framebuffer(info); | 1089 | ret = register_framebuffer(info); |
1090 | if (ret < 0) { | 1090 | if (ret < 0) { |
1091 | dev_err(dev, "failed to register framebuffer device: %d\n", ret); | 1091 | dev_err(dev, "failed to register framebuffer device: %d\n", ret); |
1092 | goto reset_drvdata; | 1092 | goto free_cmap; |
1093 | } | 1093 | } |
1094 | 1094 | ||
1095 | /* add selected videomode to modelist */ | 1095 | /* add selected videomode to modelist */ |
@@ -1105,8 +1105,6 @@ static int __init atmel_lcdfb_probe(struct platform_device *pdev) | |||
1105 | 1105 | ||
1106 | return 0; | 1106 | return 0; |
1107 | 1107 | ||
1108 | reset_drvdata: | ||
1109 | dev_set_drvdata(dev, NULL); | ||
1110 | free_cmap: | 1108 | free_cmap: |
1111 | fb_dealloc_cmap(&info->cmap); | 1109 | fb_dealloc_cmap(&info->cmap); |
1112 | unregister_irqs: | 1110 | unregister_irqs: |
@@ -1167,7 +1165,6 @@ static int __exit atmel_lcdfb_remove(struct platform_device *pdev) | |||
1167 | atmel_lcdfb_free_video_memory(sinfo); | 1165 | atmel_lcdfb_free_video_memory(sinfo); |
1168 | } | 1166 | } |
1169 | 1167 | ||
1170 | dev_set_drvdata(dev, NULL); | ||
1171 | framebuffer_release(info); | 1168 | framebuffer_release(info); |
1172 | 1169 | ||
1173 | return 0; | 1170 | return 0; |