Hi, * Sergei Shtylyov <sshtylyov@xxxxxxxxxxxxx> [2009-08-05 12:19:07+0400]: > > Hello. > > Alexander Clouter wrote: > > > I think the 'correct' way to do this is: > > --- > > void __iomem *bootcr; > > u32 val; > > > > ... > > > > bootcr = ioremap_nocache(AR7_REGS_DCL, 4); > > val = *bootcr; > > > > Wait, you can't dereference a pointer to void... > bah, ---- val = __raw_readl(bootcr); ---- Cheers -- Alexander Clouter .sigmonster says: If you keep anything long enough, you can throw it away.