Re: [PATCH 1/6] unicore32: pwm: Properly remap memory-mapped registers

2012-09-07 Thread Thierry Reding
On Thu, Sep 06, 2012 at 04:38:15PM +0800, guanxue...@mprc.pku.edu.cn wrote: > > Instead of writing to the timer controller registers by dereferencing a > > pointer to the memory location, properly remap the memory region with a > > call to ioremap_nocache() and access the registers using writel().

Re: [PATCH 1/6] unicore32: pwm: Properly remap memory-mapped registers

2012-09-06 Thread guanxuetao
> Instead of writing to the timer controller registers by dereferencing a > pointer to the memory location, properly remap the memory region with a > call to ioremap_nocache() and access the registers using writel(). > > Signed-off-by: Thierry Reding > --- > arch/unicore32/kernel/pwm.c | 25 +

[PATCH 1/6] unicore32: pwm: Properly remap memory-mapped registers

2012-09-02 Thread Thierry Reding
Instead of writing to the timer controller registers by dereferencing a pointer to the memory location, properly remap the memory region with a call to ioremap_nocache() and access the registers using writel(). Signed-off-by: Thierry Reding --- arch/unicore32/kernel/pwm.c | 25 ++