video: amifb: Remove redundant dev_set_drvdata
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 20 Sep 2013 06:32:14 +0000 (12:02 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 26 Sep 2013 10:49:22 +0000 (13:49 +0300)
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>
drivers/video/amifb.c

index a6780eecff0e6aefb864c737ad12a2d9ee8e928a..8ab304d1c855be48fb6972295a8cd51cb6abe118 100644 (file)
@@ -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;