diff options
-rwxr-xr-x | zaptel.c | 4 | ||||
-rwxr-xr-x | zconfig.h | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -1268,7 +1268,9 @@ static void zt_net_close(hdlc_device *hdlc) #ifdef LINUX26 hdlc_close(dev); #else +#ifndef CONFIG_OLD_HDLC_API hdlc_close(hdlc); +#endif #endif #ifndef LINUX26 MOD_DEC_USE_COUNT; @@ -3187,7 +3189,7 @@ static int zt_ctl_ioctl(struct inode *inode, struct file *file, unsigned int cmd chans[ch.chan]->hdlcnetdev->netdev.close = zt_net_close; chans[ch.chan]->hdlcnetdev->netdev.set_mode = NULL; chans[ch.chan]->hdlcnetdev->netdev.xmit = zt_xmit; -#endif +#endif /* NEW_HDLC_INTERFACE */ chans[ch.chan]->hdlcnetdev->netdev.netdev.irq = chans[ch.chan]->span->irq; chans[ch.chan]->hdlcnetdev->netdev.netdev.tx_queue_len = 50; res = register_hdlc_device(&chans[ch.chan]->hdlcnetdev->netdev); @@ -70,8 +70,8 @@ /* We now use the linux kernel config to detect which options to use */ /* You can still override them below */ #if defined(CONFIG_HDLC) || defined(CONFIG_HDLC_MODULE) -/* #define CONFIG_ZAPATA_NET */ /* NEVER implicitly turn on ZAPATA_NET */ -#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,4,19) +/* #define CONFIG_ZAPATA_NET */ /* NEVER implicitly turn on ZAPATA_NET */ +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,4,20) #define CONFIG_OLD_HDLC_API #else #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23) |