.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * MX25 CPU type detection |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) 2009 Daniel Mack <daniel@caiaq.de> |
---|
5 | 6 | * 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. |
---|
11 | 7 | */ |
---|
12 | 8 | #include <linux/module.h> |
---|
13 | 9 | #include <linux/io.h> |
---|
.. | .. |
---|
27 | 23 | |
---|
28 | 24 | np = of_find_compatible_node(NULL, NULL, "fsl,imx25-iim"); |
---|
29 | 25 | iim_base = of_iomap(np, 0); |
---|
| 26 | + of_node_put(np); |
---|
30 | 27 | BUG_ON(!iim_base); |
---|
31 | 28 | rev = readl(iim_base + MXC_IIMSREV); |
---|
32 | 29 | iounmap(iim_base); |
---|