[PATCH v2 04/13] ARM: mc146818rtc: remove unnecessary include of mach/irqs.h

Rob Herring robherring2 at gmail.com
Fri Jan 20 15:33:02 EST 2012

From: Rob Herring <rob.herring at calxeda.com>

The include of mach/irqs.h isn't needed, so remove it. Compiled CMOS rtc
driver. Add a check to make sure nothing depends on RTC_IRQ.

Signed-off-by: Rob Herring <rob.herring at calxeda.com>
 arch/arm/include/asm/mc146818rtc.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/arm/include/asm/mc146818rtc.h b/arch/arm/include/asm/mc146818rtc.h
index 6b884d2..e8567bb 100644
--- a/arch/arm/include/asm/mc146818rtc.h
+++ b/arch/arm/include/asm/mc146818rtc.h
@@ -5,7 +5,9 @@
 #define _ASM_MC146818RTC_H
 #include <linux/io.h>
-#include <mach/irqs.h>
+#include <linux/kernel.h>
+#define RTC_IRQ BUILD_BUG_ON(1)
 #ifndef RTC_PORT
 #define RTC_PORT(x)	(0x70 + (x))

More information about the linux-arm-kernel mailing list