rtc-cmos.c : Fix warning on PowerPC
authorSrikanth Krishnakar <skrishna@mvista.com>
Thu, 14 Oct 2010 04:03:35 +0000 (04:03 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 29 Nov 2010 04:48:19 +0000 (15:48 +1100)
commit8cb7c71bda16e2d67a332642661e0b4219641a23
tree826470768fd5ac810fd3b915532b3cb50da0abed
parent5742bd859524793b857110a13db349d95070d2dc
rtc-cmos.c : Fix warning on PowerPC

The following warning is seen while compilation of PowerPC kernel:

 CC      drivers/rtc/rtc-cmos.o
drivers/rtc/rtc-cmos.c:697:2: warning: #warning Assuming 128 bytes
of RTC+NVRAM address space, not 64 bytes.

Fix it by adding defined(__powerpc__).

Signed-off-by: Srikanth Krishnakar <skrishna@mvista.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/rtc/rtc-cmos.c