summaryrefslogtreecommitdiff
path: root/zaptel.c
diff options
context:
space:
mode:
Diffstat (limited to 'zaptel.c')
-rwxr-xr-xzaptel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zaptel.c b/zaptel.c
index c1a3248..5369faa 100755
--- a/zaptel.c
+++ b/zaptel.c
@@ -1269,7 +1269,8 @@ static int zt_net_open(hdlc_device *hdlc)
#ifdef NEW_HDLC_INTERFACE
static int zt_net_stop(struct net_device *dev)
{
- hdlc_device *hdlc = dev_to_hdlc(dev);
+ hdlc_device *h = dev_to_hdlc(dev);
+ struct zt_hdlc *hdlc = h->priv;
#else
static void zt_net_close(hdlc_device *hdlc)
{