Skip to content

Commit

Permalink
clk: core: remove powerpc special handling
Browse files Browse the repository at this point in the history
Now that the powerpc clocks are properly marked as big endian, we can
remove the special handling for PowerPC.

Signed-off-by: Jonas Gorski <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
  • Loading branch information
KanjiMonster authored and bebarino committed Apr 23, 2019
1 parent ce0c890 commit f122498
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions include/linux/clk-provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 */
Expand Down

0 comments on commit f122498

Please sign in to comment.