mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 17:57:23 +07:00
media: vpss: fix the order of resource clean up
Clean up of resources should be in reverse order of vpss_init(). Fix this inside vpss_exit(). Signed-off-by: Mukesh Ojha <mojha@codeaurora.org> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
e08f076123
commit
8aef94bead
@ -507,9 +507,9 @@ static struct platform_driver vpss_driver = {
|
||||
|
||||
static void vpss_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&vpss_driver);
|
||||
iounmap(oper_cfg.vpss_regs_base2);
|
||||
release_mem_region(VPSS_CLK_CTRL, 4);
|
||||
platform_driver_unregister(&vpss_driver);
|
||||
}
|
||||
|
||||
static int __init vpss_init(void)
|
||||
|
Loading…
Reference in New Issue
Block a user