.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. |
---|
3 | 4 | * Copyright (c) BayLibre, SAS. |
---|
4 | 5 | * Author : Neil Armstrong <narmstrong@baylibre.com> |
---|
5 | | - * |
---|
6 | | - * This software is licensed under the terms of the GNU General Public |
---|
7 | | - * License version 2, as published by the Free Software Foundation, and |
---|
8 | | - * may be copied, distributed, and modified under those terms. |
---|
9 | | - * |
---|
10 | | - * This program is distributed in the hope that it will be useful, |
---|
11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
13 | | - * GNU General Public License for more details. |
---|
14 | 6 | */ |
---|
15 | 7 | |
---|
16 | 8 | #include <linux/kernel.h> |
---|
.. | .. |
---|
66 | 58 | .enable_mask = BIT(0), |
---|
67 | 59 | .hw.init = &(struct clk_init_data){ |
---|
68 | 60 | .name = "pll0_vote", |
---|
69 | | - .parent_names = (const char *[]){ "pll8" }, |
---|
| 61 | + .parent_names = (const char *[]){ "pll0" }, |
---|
70 | 62 | .num_parents = 1, |
---|
71 | 63 | .ops = &clk_pll_vote_ops, |
---|
72 | 64 | }, |
---|
.. | .. |
---|
1702 | 1694 | .num_clks = ARRAY_SIZE(gcc_mdm9615_clks), |
---|
1703 | 1695 | .resets = gcc_mdm9615_resets, |
---|
1704 | 1696 | .num_resets = ARRAY_SIZE(gcc_mdm9615_resets), |
---|
| 1697 | + .clk_hws = gcc_mdm9615_hws, |
---|
| 1698 | + .num_clk_hws = ARRAY_SIZE(gcc_mdm9615_hws), |
---|
1705 | 1699 | }; |
---|
1706 | 1700 | |
---|
1707 | 1701 | static const struct of_device_id gcc_mdm9615_match_table[] = { |
---|
.. | .. |
---|
1712 | 1706 | |
---|
1713 | 1707 | static int gcc_mdm9615_probe(struct platform_device *pdev) |
---|
1714 | 1708 | { |
---|
1715 | | - struct device *dev = &pdev->dev; |
---|
1716 | 1709 | struct regmap *regmap; |
---|
1717 | | - int ret; |
---|
1718 | | - int i; |
---|
1719 | 1710 | |
---|
1720 | 1711 | regmap = qcom_cc_map(pdev, &gcc_mdm9615_desc); |
---|
1721 | 1712 | if (IS_ERR(regmap)) |
---|
1722 | 1713 | return PTR_ERR(regmap); |
---|
1723 | | - |
---|
1724 | | - for (i = 0; i < ARRAY_SIZE(gcc_mdm9615_hws); i++) { |
---|
1725 | | - ret = devm_clk_hw_register(dev, gcc_mdm9615_hws[i]); |
---|
1726 | | - if (ret) |
---|
1727 | | - return ret; |
---|
1728 | | - } |
---|
1729 | 1714 | |
---|
1730 | 1715 | return qcom_cc_really_probe(pdev, &gcc_mdm9615_desc, regmap); |
---|
1731 | 1716 | } |
---|