| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2014 Free Electrons |
|---|
| 3 | 4 | * |
|---|
| 4 | | - * License Terms: GNU General Public License v2 |
|---|
| 5 | 5 | * Author: Boris BREZILLON <boris.brezillon@free-electrons.com> |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Allwinner PRCM (Power/Reset/Clock Management) driver |
|---|
| 8 | | - * |
|---|
| 9 | 8 | */ |
|---|
| 10 | 9 | |
|---|
| 11 | 10 | #include <linux/mfd/core.h> |
|---|
| .. | .. |
|---|
| 148 | 147 | |
|---|
| 149 | 148 | static int sun6i_prcm_probe(struct platform_device *pdev) |
|---|
| 150 | 149 | { |
|---|
| 151 | | - struct device_node *np = pdev->dev.of_node; |
|---|
| 152 | 150 | const struct of_device_id *match; |
|---|
| 153 | 151 | const struct prcm_data *data; |
|---|
| 154 | 152 | struct resource *res; |
|---|
| 155 | 153 | int ret; |
|---|
| 156 | 154 | |
|---|
| 157 | | - match = of_match_node(sun6i_prcm_dt_ids, np); |
|---|
| 155 | + match = of_match_node(sun6i_prcm_dt_ids, pdev->dev.of_node); |
|---|
| 158 | 156 | if (!match) |
|---|
| 159 | 157 | return -EINVAL; |
|---|
| 160 | 158 | |
|---|