.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2017 MediaTek Inc. |
---|
3 | 4 | * Author: Kevin Chen <kevin-cw.chen@mediatek.com> |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify |
---|
6 | | - * it under the terms of the GNU General Public License version 2 as |
---|
7 | | - * published by the Free Software Foundation. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, |
---|
10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | | - * GNU General Public License for more details. |
---|
13 | 5 | */ |
---|
14 | 6 | |
---|
15 | 7 | #include <linux/clk-provider.h> |
---|
.. | .. |
---|
100 | 92 | "clk26m", 3), |
---|
101 | 93 | }; |
---|
102 | 94 | |
---|
103 | | -static const struct of_device_id of_match_clk_mt6797_mm[] = { |
---|
104 | | - { .compatible = "mediatek,mt6797-mmsys", }, |
---|
105 | | - {} |
---|
106 | | -}; |
---|
107 | | - |
---|
108 | 95 | static int clk_mt6797_mm_probe(struct platform_device *pdev) |
---|
109 | 96 | { |
---|
| 97 | + struct device *dev = &pdev->dev; |
---|
| 98 | + struct device_node *node = dev->parent->of_node; |
---|
110 | 99 | struct clk_onecell_data *clk_data; |
---|
111 | 100 | int r; |
---|
112 | | - struct device_node *node = pdev->dev.of_node; |
---|
113 | 101 | |
---|
114 | 102 | clk_data = mtk_alloc_clk_data(CLK_MM_NR); |
---|
115 | 103 | |
---|
.. | .. |
---|
129 | 117 | .probe = clk_mt6797_mm_probe, |
---|
130 | 118 | .driver = { |
---|
131 | 119 | .name = "clk-mt6797-mm", |
---|
132 | | - .of_match_table = of_match_clk_mt6797_mm, |
---|
133 | 120 | }, |
---|
134 | 121 | }; |
---|
135 | 122 | |
---|