diff options
| -rw-r--r-- | include/linux/clk-provider.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 4ae2257b63c6..c767a9321f15 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h | |||
| @@ -1018,20 +1018,6 @@ static inline int of_clk_detect_critical(struct device_node *np, int index, | |||
| 1018 | * for improved portability across platforms | 1018 | * for improved portability across platforms |
| 1019 | */ | 1019 | */ |
| 1020 | 1020 | ||
| 1021 | #if IS_ENABLED(CONFIG_PPC) | ||
| 1022 | |||
| 1023 | static inline u32 clk_readl(u32 __iomem *reg) | ||
| 1024 | { | ||
| 1025 | return ioread32be(reg); | ||
| 1026 | } | ||
| 1027 | |||
| 1028 | static inline void clk_writel(u32 val, u32 __iomem *reg) | ||
| 1029 | { | ||
| 1030 | iowrite32be(val, reg); | ||
| 1031 | } | ||
| 1032 | |||
| 1033 | #else /* platform dependent I/O accessors */ | ||
| 1034 | |||
| 1035 | static inline u32 clk_readl(u32 __iomem *reg) | 1021 | static inline u32 clk_readl(u32 __iomem *reg) |
| 1036 | { | 1022 | { |
| 1037 | return readl(reg); | 1023 | return readl(reg); |
| @@ -1042,8 +1028,6 @@ static inline void clk_writel(u32 val, u32 __iomem *reg) | |||
| 1042 | writel(val, reg); | 1028 | writel(val, reg); |
| 1043 | } | 1029 | } |
| 1044 | 1030 | ||
| 1045 | #endif /* platform dependent I/O accessors */ | ||
| 1046 | |||
| 1047 | void clk_gate_restore_context(struct clk_hw *hw); | 1031 | void clk_gate_restore_context(struct clk_hw *hw); |
| 1048 | 1032 | ||
| 1049 | #endif /* CONFIG_COMMON_CLK */ | 1033 | #endif /* CONFIG_COMMON_CLK */ |
