Commit 8aef94be authored by Mukesh Ojha's avatar Mukesh Ojha Committed by Mauro Carvalho Chehab

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: default avatarMukesh Ojha <mojha@codeaurora.org>
Acked-by: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent e08f0761
...@@ -507,9 +507,9 @@ static struct platform_driver vpss_driver = { ...@@ -507,9 +507,9 @@ static struct platform_driver vpss_driver = {
static void vpss_exit(void) static void vpss_exit(void)
{ {
platform_driver_unregister(&vpss_driver);
iounmap(oper_cfg.vpss_regs_base2); iounmap(oper_cfg.vpss_regs_base2);
release_mem_region(VPSS_CLK_CTRL, 4); release_mem_region(VPSS_CLK_CTRL, 4);
platform_driver_unregister(&vpss_driver);
} }
static int __init vpss_init(void) static int __init vpss_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment