| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * clk-flexgen.c |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) ST-Microelectronics SA 2013 |
|---|
| 5 | 6 | * Author: Maxime Coquelin <maxime.coquelin@st.com> for ST-Microelectronics. |
|---|
| 6 | | - * License terms: GNU General Public License (GPL), version 2 */ |
|---|
| 7 | + */ |
|---|
| 7 | 8 | |
|---|
| 8 | 9 | #include <linux/clk.h> |
|---|
| 9 | 10 | #include <linux/clk-provider.h> |
|---|
| .. | .. |
|---|
| 200 | 201 | unsigned long flexgen_flags, bool mode) { |
|---|
| 201 | 202 | struct flexgen *fgxbar; |
|---|
| 202 | 203 | struct clk *clk; |
|---|
| 203 | | - struct clk_init_data init = {}; |
|---|
| 204 | + struct clk_init_data init; |
|---|
| 204 | 205 | u32 xbar_shift; |
|---|
| 205 | 206 | void __iomem *xbar_reg, *fdiv_reg; |
|---|
| 206 | 207 | |
|---|
| .. | .. |
|---|
| 210 | 211 | |
|---|
| 211 | 212 | init.name = name; |
|---|
| 212 | 213 | init.ops = &flexgen_ops; |
|---|
| 213 | | - init.flags = CLK_IS_BASIC | CLK_GET_RATE_NOCACHE | flexgen_flags; |
|---|
| 214 | + init.flags = CLK_GET_RATE_NOCACHE | flexgen_flags; |
|---|
| 214 | 215 | init.parent_names = parent_names; |
|---|
| 215 | 216 | init.num_parents = num_parents; |
|---|
| 216 | 217 | |
|---|
| .. | .. |
|---|
| 325 | 326 | return; |
|---|
| 326 | 327 | |
|---|
| 327 | 328 | reg = of_iomap(pnode, 0); |
|---|
| 329 | + of_node_put(pnode); |
|---|
| 328 | 330 | if (!reg) |
|---|
| 329 | 331 | return; |
|---|
| 330 | 332 | |
|---|