aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMukesh Ojha2019-03-26 08:17:54 -0400
committerMauro Carvalho Chehab2019-05-23 13:08:24 -0400
commit8aef94beadc51c8fa768ef1d5ae5ca1b4c328eb0 (patch)
tree497557ef486574d7214d8d3832ab9765fbdd0877
parente08f0761234def47961d3252eac09ccedfe4c6a0 (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.c2
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)