mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 17:28:56 +00:00
video: mb862xx: 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: Anatolij Gustschin <agust@denx.de> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
064f29e00a
commit
74a7b36259
@ -781,7 +781,6 @@ rel_reg:
|
|||||||
irqdisp:
|
irqdisp:
|
||||||
irq_dispose_mapping(par->irq);
|
irq_dispose_mapping(par->irq);
|
||||||
fbrel:
|
fbrel:
|
||||||
dev_set_drvdata(dev, NULL);
|
|
||||||
framebuffer_release(info);
|
framebuffer_release(info);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -814,7 +813,6 @@ static int of_platform_mb862xx_remove(struct platform_device *ofdev)
|
|||||||
iounmap(par->mmio_base);
|
iounmap(par->mmio_base);
|
||||||
iounmap(par->fb_base);
|
iounmap(par->fb_base);
|
||||||
|
|
||||||
dev_set_drvdata(&ofdev->dev, NULL);
|
|
||||||
release_mem_region(par->res->start, res_size);
|
release_mem_region(par->res->start, res_size);
|
||||||
framebuffer_release(fbi);
|
framebuffer_release(fbi);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user