forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/arm/mach-imx/cpu-imx25.c
....@@ -1,13 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * MX25 CPU type detection
34 *
45 * Copyright (c) 2009 Daniel Mack <daniel@caiaq.de>
56 * Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version.
117 */
128 #include <linux/module.h>
139 #include <linux/io.h>
....@@ -27,6 +23,7 @@
2723
2824 np = of_find_compatible_node(NULL, NULL, "fsl,imx25-iim");
2925 iim_base = of_iomap(np, 0);
26
+ of_node_put(np);
3027 BUG_ON(!iim_base);
3128 rev = readl(iim_base + MXC_IIMSREV);
3229 iounmap(iim_base);