| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Intel Atom platform clocks driver for BayTrail and CherryTrail SoCs |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2016, Intel Corporation |
|---|
| 5 | 6 | * Author: Irina Tirdea <irina.tirdea@intel.com> |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 8 | | - * under the terms and conditions of the GNU General Public License, |
|---|
| 9 | | - * version 2, as published by the Free Software Foundation. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is distributed in the hope it will be useful, but WITHOUT |
|---|
| 12 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 13 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 14 | | - * more details. |
|---|
| 15 | 7 | */ |
|---|
| 16 | 8 | |
|---|
| 17 | 9 | #include <linux/clk-provider.h> |
|---|
| 18 | 10 | #include <linux/clkdev.h> |
|---|
| 19 | 11 | #include <linux/err.h> |
|---|
| 12 | +#include <linux/io.h> |
|---|
| 20 | 13 | #include <linux/platform_data/x86/clk-pmc-atom.h> |
|---|
| 21 | 14 | #include <linux/platform_device.h> |
|---|
| 22 | 15 | #include <linux/slab.h> |
|---|
| .. | .. |
|---|
| 170 | 163 | int num_parents) |
|---|
| 171 | 164 | { |
|---|
| 172 | 165 | struct clk_plt *pclk; |
|---|
| 173 | | - struct clk_init_data init = {}; |
|---|
| 166 | + struct clk_init_data init; |
|---|
| 174 | 167 | int ret; |
|---|
| 175 | 168 | |
|---|
| 176 | 169 | pclk = devm_kzalloc(&pdev->dev, sizeof(*pclk), GFP_KERNEL); |
|---|