| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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. |
|---|
| 7 | 4 | */ |
|---|
| 8 | 5 | #include <linux/clocksource.h> |
|---|
| 9 | 6 | #include <linux/errno.h> |
|---|
| .. | .. |
|---|
| 24 | 21 | { |
|---|
| 25 | 22 | return (u64)readl_relaxed(to_mmio_clksrc(c)->reg); |
|---|
| 26 | 23 | } |
|---|
| 24 | +EXPORT_SYMBOL_GPL(clocksource_mmio_readl_up); |
|---|
| 27 | 25 | |
|---|
| 28 | 26 | u64 clocksource_mmio_readl_down(struct clocksource *c) |
|---|
| 29 | 27 | { |
|---|
| .. | .. |
|---|
| 49 | 47 | * @bits: Number of valid bits |
|---|
| 50 | 48 | * @read: One of clocksource_mmio_read*() above |
|---|
| 51 | 49 | */ |
|---|
| 52 | | -int __init clocksource_mmio_init(void __iomem *base, const char *name, |
|---|
| 50 | +int clocksource_mmio_init(void __iomem *base, const char *name, |
|---|
| 53 | 51 | unsigned long hz, int rating, unsigned bits, |
|---|
| 54 | 52 | u64 (*read)(struct clocksource *)) |
|---|
| 55 | 53 | { |
|---|
| .. | .. |
|---|
| 71 | 69 | |
|---|
| 72 | 70 | return clocksource_register_hz(&cs->clksrc, hz); |
|---|
| 73 | 71 | } |
|---|
| 72 | +EXPORT_SYMBOL_GPL(clocksource_mmio_init); |
|---|