| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Hisilicon clock separated gate driver |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Author: Haojian Zhuang <haojian.zhuang@linaro.org> |
|---|
| 8 | 9 | * Xin Li <li.xin@linaro.org> |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 11 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 12 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 13 | | - * (at your option) any later version. |
|---|
| 14 | | - * |
|---|
| 15 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 16 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 17 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 18 | | - * GNU General Public License for more details. |
|---|
| 19 | | - * |
|---|
| 20 | | - * You should have received a copy of the GNU General Public License along |
|---|
| 21 | | - * with this program; if not, write to the Free Software Foundation, Inc., |
|---|
| 22 | | - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|---|
| 23 | | - * |
|---|
| 24 | 10 | */ |
|---|
| 25 | 11 | |
|---|
| 26 | 12 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 102 | 88 | { |
|---|
| 103 | 89 | struct clkgate_separated *sclk; |
|---|
| 104 | 90 | struct clk *clk; |
|---|
| 105 | | - struct clk_init_data init = {}; |
|---|
| 91 | + struct clk_init_data init; |
|---|
| 106 | 92 | |
|---|
| 107 | 93 | sclk = kzalloc(sizeof(*sclk), GFP_KERNEL); |
|---|
| 108 | 94 | if (!sclk) |
|---|
| .. | .. |
|---|
| 110 | 96 | |
|---|
| 111 | 97 | init.name = name; |
|---|
| 112 | 98 | init.ops = &clkgate_separated_ops; |
|---|
| 113 | | - init.flags = flags | CLK_IS_BASIC; |
|---|
| 99 | + init.flags = flags; |
|---|
| 114 | 100 | init.parent_names = (parent_name ? &parent_name : NULL); |
|---|
| 115 | 101 | init.num_parents = (parent_name ? 1 : 0); |
|---|
| 116 | 102 | |
|---|