sh: CPG MSTP ioremap() prototype hack
PATCH 2/7 sh: CPG MSTP ioremap() prototype hack
From: Magnus Damm <[email protected]>
Hack to use the cookie returned from ioremap(). Will be rewritten and submitted separately in the near future. Needed by the r8a7779 clock code since entity mapping is out of the question.
Not-yet-signed-off-by Magnus Damm <[email protected]>
---
drivers/sh/clk/cpg.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/sh/clk/cpg.c +4 -0
@@ -42,6 +42,10 @@ int __init sh_clk_mstp32_register(struct clkp = clks + k; clkp->ops = &sh_clk_mstp32_clk_ops; ret |=clk_register (clkp); +if (!ret && clkp->mapping->base) { + clkp->enable_reg -= clkp->mapping->phys; + clkp->enable_reg += (unsigned long )clkp->mapping->base; + } }return ret;