| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Hisilicon Hi3620 clock 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> |
|---|
| .. | .. |
|---|
| 427 | 413 | { |
|---|
| 428 | 414 | struct clk_mmc *mclk; |
|---|
| 429 | 415 | struct clk *clk; |
|---|
| 430 | | - struct clk_init_data init = {}; |
|---|
| 416 | + struct clk_init_data init; |
|---|
| 431 | 417 | |
|---|
| 432 | 418 | mclk = kzalloc(sizeof(*mclk), GFP_KERNEL); |
|---|
| 433 | 419 | if (!mclk) |
|---|
| .. | .. |
|---|
| 435 | 421 | |
|---|
| 436 | 422 | init.name = mmc_clk->name; |
|---|
| 437 | 423 | init.ops = &clk_mmc_ops; |
|---|
| 438 | | - init.flags = mmc_clk->flags | CLK_IS_BASIC; |
|---|
| 424 | + init.flags = mmc_clk->flags; |
|---|
| 439 | 425 | init.parent_names = (mmc_clk->parent_name ? &mmc_clk->parent_name : NULL); |
|---|
| 440 | 426 | init.num_parents = (mmc_clk->parent_name ? 1 : 0); |
|---|
| 441 | 427 | mclk->hw.init = &init; |
|---|