hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/clk/mediatek/clk-mt2701-mm.c
....@@ -1,15 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2014 MediaTek Inc.
34 * Author: Shunli Wang <shunli.wang@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.
135 */
146
157 #include <linux/clk-provider.h>
....@@ -87,16 +79,12 @@
8779 GATE_DISP1(CLK_MM_TVE_FMM, "mm_tve_fmm", "mm_sel", 14),
8880 };
8981
90
-static const struct of_device_id of_match_clk_mt2701_mm[] = {
91
- { .compatible = "mediatek,mt2701-mmsys", },
92
- {}
93
-};
94
-
9582 static int clk_mt2701_mm_probe(struct platform_device *pdev)
9683 {
84
+ struct device *dev = &pdev->dev;
85
+ struct device_node *node = dev->parent->of_node;
9786 struct clk_onecell_data *clk_data;
9887 int r;
99
- struct device_node *node = pdev->dev.of_node;
10088
10189 clk_data = mtk_alloc_clk_data(CLK_MM_NR);
10290
....@@ -116,7 +104,6 @@
116104 .probe = clk_mt2701_mm_probe,
117105 .driver = {
118106 .name = "clk-mt2701-mm",
119
- .of_match_table = of_match_clk_mt2701_mm,
120107 },
121108 };
122109