unicore32: pwm: Properly remap memory-mapped registers
authorThierry Reding <thierry.reding@avionic-design.de>
Fri, 14 Sep 2012 08:14:25 +0000 (16:14 +0800)
committerThierry Reding <thierry.reding@avionic-design.de>
Fri, 5 Oct 2012 18:56:39 +0000 (20:56 +0200)
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 <thierry.reding@avionic-design.de>
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Tested-by: Qin Rui <qinrui@mprc.pku.edu.cn>

No differences found