hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/mfd/sun6i-prcm.c
....@@ -1,11 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2014 Free Electrons
34 *
4
- * License Terms: GNU General Public License v2
55 * Author: Boris BREZILLON <boris.brezillon@free-electrons.com>
66 *
77 * Allwinner PRCM (Power/Reset/Clock Management) driver
8
- *
98 */
109
1110 #include <linux/mfd/core.h>
....@@ -148,13 +147,12 @@
148147
149148 static int sun6i_prcm_probe(struct platform_device *pdev)
150149 {
151
- struct device_node *np = pdev->dev.of_node;
152150 const struct of_device_id *match;
153151 const struct prcm_data *data;
154152 struct resource *res;
155153 int ret;
156154
157
- match = of_match_node(sun6i_prcm_dt_ids, np);
155
+ match = of_match_node(sun6i_prcm_dt_ids, pdev->dev.of_node);
158156 if (!match)
159157 return -EINVAL;
160158