.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2013 Imagination Technologies |
---|
3 | 4 | * 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. |
---|
9 | 5 | */ |
---|
10 | 6 | |
---|
11 | 7 | #include <linux/errno.h> |
---|
.. | .. |
---|
31 | 27 | cpc_node = of_find_compatible_node(of_root, NULL, "mti,mips-cpc"); |
---|
32 | 28 | if (cpc_node) { |
---|
33 | 29 | err = of_address_to_resource(cpc_node, 0, &res); |
---|
| 30 | + of_node_put(cpc_node); |
---|
34 | 31 | if (!err) |
---|
35 | 32 | return res.start; |
---|
36 | 33 | } |
---|
.. | .. |
---|
82 | 79 | if (!addr) |
---|
83 | 80 | return -ENODEV; |
---|
84 | 81 | |
---|
85 | | - mips_cpc_base = ioremap_nocache(addr, 0x8000); |
---|
| 82 | + mips_cpc_base = ioremap(addr, 0x8000); |
---|
86 | 83 | if (!mips_cpc_base) |
---|
87 | 84 | return -ENXIO; |
---|
88 | 85 | |
---|