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:
Mukesh Ojha 2019-03-26 08:17:54 -04:00 committed by Mauro Carvalho Chehab
parent e08f076123
commit 8aef94bead

View File

@ -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)