aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/clk-provider.h
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2019-04-18 13:12:10 +0200
committerStephen Boyd <sboyd@kernel.org>2019-04-23 10:57:49 -0700
commitf122498703d65c7dc8a4a15abed6405cc256269e (patch)
tree334ef64e4cc895bba87fef160464254f0496b620 /include/linux/clk-provider.h
parentpowerpc/512x: mark clocks as big endian (diff)
downloadlinux-dev-f122498703d65c7dc8a4a15abed6405cc256269e.tar.xz
linux-dev-f122498703d65c7dc8a4a15abed6405cc256269e.zip
clk: core: remove powerpc special handling
Now that the powerpc clocks are properly marked as big endian, we can remove the special handling for PowerPC. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'include/linux/clk-provider.h')
-rw-r--r--include/linux/clk-provider.h16
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,
* for improved portability across platforms
*/
-#if IS_ENABLED(CONFIG_PPC)
-
-static inline u32 clk_readl(u32 __iomem *reg)
-{
- return ioread32be(reg);
-}
-
-static inline void clk_writel(u32 val, u32 __iomem *reg)
-{
- iowrite32be(val, reg);
-}
-
-#else /* platform dependent I/O accessors */
-
static inline u32 clk_readl(u32 __iomem *reg)
{
return readl(reg);
@@ -1042,8 +1028,6 @@ static inline void clk_writel(u32 val, u32 __iomem *reg)
writel(val, reg);
}
-#endif /* platform dependent I/O accessors */
-
void clk_gate_restore_context(struct clk_hw *hw);
#endif /* CONFIG_COMMON_CLK */