[PATCH 2.6.21-rt7] rtc_fix_missing_ENDIF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A change between rt6 and rt7 dropped a #endif in rtc.c.

Compile fails on imbalanced pre-processor directives.

I think that this is correct for Sparc and MIPS, and it definitely
eliminates complaints about PCI_IRQ_NONE definitions for x86.

signed-off-by: Sven-Thorsten Dietrich <[email protected]>


Index: linux-2.6.21/drivers/char/rtc.c
===================================================================
--- linux-2.6.21.orig/drivers/char/rtc.c
+++ linux-2.6.21/drivers/char/rtc.c
@@ -93,13 +93,14 @@
 #include <asm/isa.h>
 #endif
 
+static unsigned long rtc_port;
+static int rtc_irq = PCI_IRQ_NONE;
+#endif
+
 #ifdef CONFIG_MIPS
 # include <asm/time.h>
 #endif
 
-static unsigned long rtc_port;
-static int rtc_irq = PCI_IRQ_NONE;
-
 #ifdef CONFIG_RTC_HISTOGRAM
 
 static cycles_t last_interrupt_time;

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux