.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * kirkwood_freq.c: cpufreq driver for the Marvell kirkwood |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2013 Andrew Lunn <andrew@lunn.ch> |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or |
---|
7 | | - * modify it under the terms of the GNU General Public License |
---|
8 | | - * as published by the Free Software Foundation; either version |
---|
9 | | - * 2 of the License, or (at your option) any later version. |
---|
10 | 6 | */ |
---|
11 | 7 | |
---|
12 | 8 | #include <linux/kernel.h> |
---|
.. | .. |
---|
89 | 85 | /* Module init and exit code */ |
---|
90 | 86 | static int kirkwood_cpufreq_cpu_init(struct cpufreq_policy *policy) |
---|
91 | 87 | { |
---|
92 | | - return cpufreq_generic_init(policy, kirkwood_freq_table, 5000); |
---|
| 88 | + cpufreq_generic_init(policy, kirkwood_freq_table, 5000); |
---|
| 89 | + return 0; |
---|
93 | 90 | } |
---|
94 | 91 | |
---|
95 | 92 | static struct cpufreq_driver kirkwood_cpufreq_driver = { |
---|
.. | .. |
---|
105 | 102 | static int kirkwood_cpufreq_probe(struct platform_device *pdev) |
---|
106 | 103 | { |
---|
107 | 104 | struct device_node *np; |
---|
108 | | - struct resource *res; |
---|
109 | 105 | int err; |
---|
110 | 106 | |
---|
111 | 107 | priv.dev = &pdev->dev; |
---|
112 | 108 | |
---|
113 | | - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
---|
114 | | - priv.base = devm_ioremap_resource(&pdev->dev, res); |
---|
| 109 | + priv.base = devm_platform_ioremap_resource(pdev, 0); |
---|
115 | 110 | if (IS_ERR(priv.base)) |
---|
116 | 111 | return PTR_ERR(priv.base); |
---|
117 | 112 | |
---|