hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/mips/kernel/mips-cpc.c
....@@ -1,11 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2013 Imagination Technologies
34 * Author: Paul Burton <paul.burton@mips.com>
4
- *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU General Public License as published by the
7
- * Free Software Foundation; either version 2 of the License, or (at your
8
- * option) any later version.
95 */
106
117 #include <linux/errno.h>
....@@ -31,6 +27,7 @@
3127 cpc_node = of_find_compatible_node(of_root, NULL, "mti,mips-cpc");
3228 if (cpc_node) {
3329 err = of_address_to_resource(cpc_node, 0, &res);
30
+ of_node_put(cpc_node);
3431 if (!err)
3532 return res.start;
3633 }
....@@ -82,7 +79,7 @@
8279 if (!addr)
8380 return -ENODEV;
8481
85
- mips_cpc_base = ioremap_nocache(addr, 0x8000);
82
+ mips_cpc_base = ioremap(addr, 0x8000);
8683 if (!mips_cpc_base)
8784 return -ENXIO;
8885