]> git.karo-electronics.de Git - karo-tx-linux.git/commit
arch/unicore32/kernel/clock.c: add readl() and writel() for 'PM_' macros
authorChen Gang <gang.chen.5i5j@gmail.com>
Fri, 14 Mar 2014 01:19:39 +0000 (09:19 +0800)
committerGuan Xuetao <gxt@mprc.pku.edu.cn>
Thu, 29 May 2014 06:49:26 +0000 (14:49 +0800)
commitd180d39c6c215c1fcf24af64aa602a62e87b39fd
tree9b618f89c89298752b9af2625223db4acfc3c7a5
parentd0a525580b4ac38fd809cdb87603f1cb165d957c
arch/unicore32/kernel/clock.c: add readl() and writel() for 'PM_' macros

Add readl() and writel() for 'PM_' macros, just like another areas have
done within unicored32, or will cause compiling issue.

The related error (allmodconfig for unicored32):

    CC      arch/unicore32/kernel/clock.o
  arch/unicore32/kernel/clock.c: In function 'clk_set_rate':
  arch/unicore32/kernel/clock.c:182: warning: initialization makes integer from pointer without a cast
  arch/unicore32/kernel/clock.c:204: error: lvalue required as left operand of assignment
  arch/unicore32/kernel/clock.c:206: error: lvalue required as left operand of assignment
  arch/unicore32/kernel/clock.c:207: error: invalid operands to binary & (have 'void *' and 'long unsigned int')
  make[1]: *** [arch/unicore32/kernel/clock.o] Error 1
  make: *** [arch/unicore32/kernel] Error 2

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Acked-by: Xuetao Guan <gxt@mprc.pku.edu.cn>
Signed-off-by: Xuetao Guan <gxt@mprc.pku.edu.cn>
arch/unicore32/kernel/clock.c