forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/clocksource/mmio.c
....@@ -1,9 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Generic MMIO clocksource support
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 version 2 as
6
- * published by the Free Software Foundation.
74 */
85 #include <linux/clocksource.h>
96 #include <linux/errno.h>
....@@ -24,6 +21,7 @@
2421 {
2522 return (u64)readl_relaxed(to_mmio_clksrc(c)->reg);
2623 }
24
+EXPORT_SYMBOL_GPL(clocksource_mmio_readl_up);
2725
2826 u64 clocksource_mmio_readl_down(struct clocksource *c)
2927 {
....@@ -49,7 +47,7 @@
4947 * @bits: Number of valid bits
5048 * @read: One of clocksource_mmio_read*() above
5149 */
52
-int __init clocksource_mmio_init(void __iomem *base, const char *name,
50
+int clocksource_mmio_init(void __iomem *base, const char *name,
5351 unsigned long hz, int rating, unsigned bits,
5452 u64 (*read)(struct clocksource *))
5553 {
....@@ -71,3 +69,4 @@
7169
7270 return clocksource_register_hz(&cs->clksrc, hz);
7371 }
72
+EXPORT_SYMBOL_GPL(clocksource_mmio_init);