hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/clk/bcm/clk-bcm2835-aux.c
....@@ -1,19 +1,11 @@
1
+// SPDX-License-Identifier: GPL-2.0+
12 /*
23 * 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.
134 */
145
156 #include <linux/clk.h>
167 #include <linux/clk-provider.h>
8
+#include <linux/io.h>
179 #include <linux/module.h>
1810 #include <linux/platform_device.h>
1911 #include <dt-bindings/clock/bcm2835-aux.h>
....@@ -27,7 +19,6 @@
2719 struct clk_hw_onecell_data *onecell;
2820 const char *parent;
2921 struct clk *parent_clk;
30
- struct resource *res;
3122 void __iomem *reg, *gate;
3223
3324 parent_clk = devm_clk_get(dev, NULL);
....@@ -35,8 +26,7 @@
3526 return PTR_ERR(parent_clk);
3627 parent = __clk_get_name(parent_clk);
3728
38
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
39
- reg = devm_ioremap_resource(dev, res);
29
+ reg = devm_platform_ioremap_resource(pdev, 0);
4030 if (IS_ERR(reg))
4131 return PTR_ERR(reg);
4232
....@@ -79,4 +69,4 @@
7969
8070 MODULE_AUTHOR("Eric Anholt <eric@anholt.net>");
8171 MODULE_DESCRIPTION("BCM2835 auxiliary peripheral clock driver");
82
-MODULE_LICENSE("GPL v2");
72
+MODULE_LICENSE("GPL");