| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2012-2016 Zhang, Keguang <keguang.zhang@gmail.com> |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 5 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 6 | | - * Free Software Foundation; either version 2 of the License, or (at your |
|---|
| 7 | | - * option) any later version. |
|---|
| 8 | 4 | */ |
|---|
| 9 | 5 | |
|---|
| 10 | 6 | #include <linux/clk-provider.h> |
|---|
| 11 | 7 | #include <linux/slab.h> |
|---|
| 8 | + |
|---|
| 9 | +#include "clk.h" |
|---|
| 12 | 10 | |
|---|
| 13 | 11 | struct clk_hw *__init clk_hw_register_pll(struct device *dev, |
|---|
| 14 | 12 | const char *name, |
|---|
| .. | .. |
|---|
| 18 | 16 | { |
|---|
| 19 | 17 | int ret; |
|---|
| 20 | 18 | struct clk_hw *hw; |
|---|
| 21 | | - struct clk_init_data init = {}; |
|---|
| 19 | + struct clk_init_data init; |
|---|
| 22 | 20 | |
|---|
| 23 | 21 | /* allocate the divider */ |
|---|
| 24 | 22 | hw = kzalloc(sizeof(*hw), GFP_KERNEL); |
|---|
| .. | .. |
|---|
| 27 | 25 | |
|---|
| 28 | 26 | init.name = name; |
|---|
| 29 | 27 | init.ops = ops; |
|---|
| 30 | | - init.flags = flags | CLK_IS_BASIC; |
|---|
| 31 | | - init.parent_names = (parent_name ? &parent_name : NULL); |
|---|
| 32 | | - init.num_parents = (parent_name ? 1 : 0); |
|---|
| 28 | + init.flags = flags; |
|---|
| 29 | + init.parent_names = parent_name ? &parent_name : NULL; |
|---|
| 30 | + init.num_parents = parent_name ? 1 : 0; |
|---|
| 33 | 31 | hw->init = &init; |
|---|
| 34 | 32 | |
|---|
| 35 | 33 | /* register the clock */ |
|---|