summaryrefslogtreecommitdiffstats
path: root/drivers/video/amifb.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-20 12:02:14 +0530
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-09-26 13:49:22 +0300
commitbc4626fc87dcc53fc4e0880f818eb269326ac4fb (patch)
treec4d0e744438cc35841d5ac1e88b23051dcf6090d /drivers/video/amifb.c
parent74a7b36259fe00d98db6ca4c779960d08c397f4a (diff)
downloadop-kernel-dev-bc4626fc87dcc53fc4e0880f818eb269326ac4fb.zip
op-kernel-dev-bc4626fc87dcc53fc4e0880f818eb269326ac4fb.tar.gz
video: amifb: 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> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/amifb.c')
-rw-r--r--drivers/video/amifb.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/video/amifb.c b/drivers/video/amifb.c
index a6780ee..8ab304d 100644
--- a/drivers/video/amifb.c
+++ b/drivers/video/amifb.c
@@ -3748,7 +3748,6 @@ default_chipset:
return 0;
unset_drvdata:
- dev_set_drvdata(&pdev->dev, NULL);
fb_dealloc_cmap(&info->cmap);
free_irq:
free_irq(IRQ_AMIGA_COPPER, info->par);
@@ -3768,7 +3767,6 @@ static int __exit amifb_remove(struct platform_device *pdev)
struct fb_info *info = dev_get_drvdata(&pdev->dev);
unregister_framebuffer(info);
- dev_set_drvdata(&pdev->dev, NULL);
fb_dealloc_cmap(&info->cmap);
free_irq(IRQ_AMIGA_COPPER, info->par);
custom.dmacon = DMAF_ALL | DMAF_MASTER;
OpenPOWER on IntegriCloud