diff options
author | Mukesh Ojha | 2019-03-26 08:17:54 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab | 2019-05-23 13:08:24 -0400 |
commit | 8aef94beadc51c8fa768ef1d5ae5ca1b4c328eb0 (patch) | |
tree | 497557ef486574d7214d8d3832ab9765fbdd0877 | |
parent | e08f0761234def47961d3252eac09ccedfe4c6a0 (diff) |
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>
-rw-r--r-- | drivers/media/platform/davinci/vpss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/davinci/vpss.c b/drivers/media/platform/davinci/vpss.c index 89a86c19579b..b4ff3f1961a1 100644 --- a/drivers/media/platform/davinci/vpss.c +++ b/drivers/media/platform/davinci/vpss.c @@ -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) |