[PATCH 2/7 v2] Add clock framework for plat-tcc

Hans J. Koch hjk at linutronix.de
Sat Mar 27 12:20:29 EDT 2010


On Thu, Mar 25, 2010 at 08:32:42PM +0000, Russell King - ARM Linux wrote:
> On Thu, Mar 25, 2010 at 09:09:16PM +0100, Hans J. Koch wrote:
> > +#define BCLKCTR0	(void __iomem *)(CKC_BASE + BCLKCTR0_OFFS)
> > +#define BCLKCTR1	(void __iomem *)(CKC_BASE + BCLKCTR1_OFFS)
> 
> If you define CKC_BASE to have type 'void __iomem *' then all these
> cases go away.

Done.

> 
> > +	reg = __raw_readl(CKC_BASE + CLKCTRL_OFFS);
> 
> And this won't warn in the future.

Right :)

Thanks,
Hans




More information about the linux-arm-kernel mailing list