[2.6 patch] let RTC_DRV_PCF8583 depend on ARCH_RPC

From: Adrian Bunk
Date: Mon Apr 14 2008 - 10:19:57 EST


This patch fixes the following compile error on architectures without
asm/mc146818rtc.h:

<-- snip -->

...
CC [M] drivers/rtc/rtc-pcf8583.o
In file included from /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/rtc/rtc-pcf8583.c:18:
/home/bunk/linux/kernel-2.6/git/linux-2.6/include/linux/mc146818rtc.h:16:59: error: asm/mc146818rtc.h: No such file or directory
make[3]: *** [drivers/rtc/rtc-pcf8583.o] Error 1

<-- snip -->

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxxx>

---
d2a133b4f0bebbbf2f4045a5503b82135da2c620 diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 9e7de63..d0d6c6e 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -213,6 +213,7 @@ config RTC_DRV_PCF8563

config RTC_DRV_PCF8583
tristate "Philips PCF8583"
+ depends on ARCH_RPC
help
If you say yes here you get support for the Philips PCF8583
RTC chip found on Acorn RiscPCs. This driver supports the

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/