[PATCH 02/11] ARM: imx: use dynamic mapping for CCM
Shawn Guo
shawn.guo at linaro.org
Mon Apr 27 00:54:06 PDT 2015
On Sun, Apr 26, 2015 at 10:45:18PM +0300, Nicolae Rosia wrote:
> > diff --git a/arch/arm/mach-imx/clk-imx35.c b/arch/arm/mach-imx/clk-imx35.c
> > index 4ef1e8bdac5b..14f33ec049bc 100644
> > --- a/arch/arm/mach-imx/clk-imx35.c
> > +++ b/arch/arm/mach-imx/clk-imx35.c
> > @@ -71,11 +71,14 @@ static struct clk *clk[clk_max];
> >
> > int __init mx35_clocks_init(void)
> > {
> > - void __iomem *base = MX35_IO_ADDRESS(MX35_CCM_BASE_ADDR);
> > + void __iomem *base;
> > u32 pdr0, consumer_sel, hsp_sel;
> > struct arm_ahb_div *aad;
> > unsigned char *hsp_div;
> >
> > + base = ioremap(MX35_CCM_BASE_ADDR, SZ_4K);
> > + BUG_ON(base);
> BUG_ON(!base) ?
Oops. Fixed. Thanks for spotting it, Nicolae.
Shawn
More information about the linux-arm-kernel
mailing list