]> git.pld-linux.org Git - packages/kernel.git/blame - linux-2.5.67-genrtc_fix.patch
- added description of djurban's branch
[packages/kernel.git] / linux-2.5.67-genrtc_fix.patch
CommitLineData
1887216f
PG
1--- drivers/char/genrtc.c.orig 2003-04-08 21:15:52.000000000 +0200
2+++ drivers/char/genrtc.c 2003-04-08 21:43:37.000000000 +0200
3@@ -486,16 +486,21 @@
4 "update_IRQ\t: %s\n"
5 "periodic_IRQ\t: %s\n"
6 "periodic_freq\t: %ld\n"
7- "batt_status\t: %s\n",
8- (flags & RTC_DST_EN) ? "yes" : "no",
9+#ifdef RTC_BATT_BAD
10+ "batt_status\t: %s\n"
11+#endif
12+ ,(flags & RTC_DST_EN) ? "yes" : "no",
13 (flags & RTC_DM_BINARY) ? "no" : "yes",
14 (flags & RTC_24H) ? "yes" : "no",
15 (flags & RTC_SQWE) ? "yes" : "no",
16 (flags & RTC_AIE) ? "yes" : "no",
17 irq_active ? "yes" : "no",
18 (flags & RTC_PIE) ? "yes" : "no",
19- 0L /* freq */,
20- (flags & RTC_BATT_BAD) ? "bad" : "okay");
21+ 0L /* freq */
22+#ifdef RTC_BATT_BAD
23+ ,(flags & RTC_BATT_BAD) ? "bad" : "okay"
24+#endif
25+ );
26 if (!get_rtc_pll(&pll))
27 p += sprintf(p,
28 "PLL adjustment\t: %d\n"
This page took 1.063694 seconds and 4 git commands to generate.