| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2015 Broadcom |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 6 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 7 | | - * (at your option) any later version. |
|---|
| 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 | 4 | */ |
|---|
| 14 | 5 | |
|---|
| 15 | 6 | #include <linux/clk.h> |
|---|
| 16 | 7 | #include <linux/clk-provider.h> |
|---|
| 8 | +#include <linux/io.h> |
|---|
| 17 | 9 | #include <linux/module.h> |
|---|
| 18 | 10 | #include <linux/platform_device.h> |
|---|
| 19 | 11 | #include <dt-bindings/clock/bcm2835-aux.h> |
|---|
| .. | .. |
|---|
| 27 | 19 | struct clk_hw_onecell_data *onecell; |
|---|
| 28 | 20 | const char *parent; |
|---|
| 29 | 21 | struct clk *parent_clk; |
|---|
| 30 | | - struct resource *res; |
|---|
| 31 | 22 | void __iomem *reg, *gate; |
|---|
| 32 | 23 | |
|---|
| 33 | 24 | parent_clk = devm_clk_get(dev, NULL); |
|---|
| .. | .. |
|---|
| 35 | 26 | return PTR_ERR(parent_clk); |
|---|
| 36 | 27 | parent = __clk_get_name(parent_clk); |
|---|
| 37 | 28 | |
|---|
| 38 | | - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
|---|
| 39 | | - reg = devm_ioremap_resource(dev, res); |
|---|
| 29 | + reg = devm_platform_ioremap_resource(pdev, 0); |
|---|
| 40 | 30 | if (IS_ERR(reg)) |
|---|
| 41 | 31 | return PTR_ERR(reg); |
|---|
| 42 | 32 | |
|---|
| .. | .. |
|---|
| 79 | 69 | |
|---|
| 80 | 70 | MODULE_AUTHOR("Eric Anholt <eric@anholt.net>"); |
|---|
| 81 | 71 | MODULE_DESCRIPTION("BCM2835 auxiliary peripheral clock driver"); |
|---|
| 82 | | -MODULE_LICENSE("GPL v2"); |
|---|
| 72 | +MODULE_LICENSE("GPL"); |
|---|