Changeset 1384
Adapted zaptel to linux kernel 2.6.15
It should work on older also, since the changes were trivial
Committed by:
egnarf
Date:
Feb 14 2006 * 20:57 (over 2 years ago)
Affected files:
zaptel/trunk/zaptel.c (unified diff)
| r277 | r1384 | |
|---|---|---|
| 157 | 157 | |
| 158 | 158 | /* udev necessary data structures. Yeah! */ |
| 159 | 159 | #ifdef CONFIG_ZAP_UDEV |
| 160 | #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15) | |
| 161 | #define class_device_create(a,...) class_device_create(a,NULL,__VA_ARGS__) | |
| 162 | #endif | |
| 160 | 163 | #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13) |
| 161 | 164 | static struct class *zap_class = NULL; |
| 162 | 165 | #else |
zaptel/trunk/ztdummy.c (unified diff)
| r1032 | r1384 | |
|---|---|---|
| 129 | 129 | #ifdef LINUX26 |
| 130 | 130 | #ifdef USE_RTC |
| 131 | 131 | /* rtc_interrupt - called at 1024Hz from hook in RTC handler */ |
| 132 | static void rtc_interrupt(void *private_data) | |
| 132 | static void our_rtc_interrupt(void *private_data) | |
| 133 | 133 | { |
| 134 | 134 | struct ztdummy *ztd = private_data; |
| 135 | 135 | unsigned int ticks; |
| --- | --- | |
| 237 | 237 | #ifdef LINUX26 |
| 238 | 238 | #ifdef USE_RTC |
| 239 | 239 | atomic_set(&ztd->ticks, 0); |
| 240 | ztd->rtc_task.func = rtc_interrupt; | |
| 240 | ztd->rtc_task.func = our_rtc_interrupt; | |
| 241 | 241 | ztd->rtc_task.private_data = ztd; |
| 242 | 242 | err = rtc_register(&ztd->rtc_task); |
| 243 | 243 | if (err < 0) { |
![Home changeset 1384 [home]](/images/logo.png?1180520111)
RSS Feeds