| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Clock driver for the ARM Integrator/AP, Integrator/CP, Versatile AB and |
|---|
| 3 | 4 | * Versatile PB boards. |
|---|
| 4 | 5 | * Copyright (C) 2012 Linus Walleij |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 8 | | - * published by the Free Software Foundation. |
|---|
| 9 | 6 | */ |
|---|
| 10 | 7 | #include <linux/clk-provider.h> |
|---|
| 11 | 8 | #include <linux/err.h> |
|---|
| .. | .. |
|---|
| 59 | 56 | static void __init cm_osc_setup(struct device_node *np, |
|---|
| 60 | 57 | const struct clk_icst_desc *desc) |
|---|
| 61 | 58 | { |
|---|
| 62 | | - struct clk *clk = ERR_PTR(-EINVAL); |
|---|
| 59 | + struct clk *clk; |
|---|
| 63 | 60 | const char *clk_name = np->name; |
|---|
| 64 | 61 | const char *parent_name; |
|---|
| 65 | 62 | |
|---|
| .. | .. |
|---|
| 73 | 70 | return; |
|---|
| 74 | 71 | } |
|---|
| 75 | 72 | cm_base = of_iomap(parent, 0); |
|---|
| 73 | + of_node_put(parent); |
|---|
| 76 | 74 | if (!cm_base) { |
|---|
| 77 | 75 | pr_err("could not remap core module base\n"); |
|---|
| 78 | 76 | return; |
|---|