diff options
author | Mukesh Ojha <mojha@codeaurora.org> | 2019-03-26 15:17:54 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-05-23 20:08:24 +0300 |
commit | 8aef94beadc51c8fa768ef1d5ae5ca1b4c328eb0 (patch) | |
tree | 497557ef486574d7214d8d3832ab9765fbdd0877 | |
parent | e08f0761234def47961d3252eac09ccedfe4c6a0 (diff) | |
download | linux-8aef94beadc51c8fa768ef1d5ae5ca1b4c328eb0.tar.xz |
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) |