| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright 2008-2010 Freescale Semiconductor, Inc. All Rights Reserved. |
|---|
| 3 | | - * |
|---|
| 4 | | - * The code contained herein is licensed under the GNU General Public |
|---|
| 5 | | - * License. You may obtain a copy of the GNU General Public License |
|---|
| 6 | | - * Version 2 or later at the following locations: |
|---|
| 7 | | - * |
|---|
| 8 | | - * http://www.opensource.org/licenses/gpl-license.html |
|---|
| 9 | | - * http://www.gnu.org/copyleft/gpl.html |
|---|
| 10 | 4 | * |
|---|
| 11 | 5 | * This file contains the CPU initialization code. |
|---|
| 12 | 6 | */ |
|---|
| .. | .. |
|---|
| 34 | 28 | |
|---|
| 35 | 29 | np = of_find_compatible_node(NULL, NULL, compat); |
|---|
| 36 | 30 | iim_base = of_iomap(np, 0); |
|---|
| 31 | + of_node_put(np); |
|---|
| 37 | 32 | WARN_ON(!iim_base); |
|---|
| 38 | 33 | |
|---|
| 39 | 34 | srev = readl(iim_base + IIM_SREV) & 0xff; |
|---|