forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/drivers/media/platform/davinci/vpss.c
....@@ -1,15 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2009 Texas Instruments.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation; either version 2 of the License, or
7
- * (at your option) any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
134 *
145 * common vpss system module platform driver for all video drivers.
156 */
....@@ -507,9 +498,9 @@
507498
508499 static void vpss_exit(void)
509500 {
501
+ platform_driver_unregister(&vpss_driver);
510502 iounmap(oper_cfg.vpss_regs_base2);
511503 release_mem_region(VPSS_CLK_CTRL, 4);
512
- platform_driver_unregister(&vpss_driver);
513504 }
514505
515506 static int __init vpss_init(void)