diff options
-rwxr-xr-x | wcfxs.c | 2 | ||||
-rwxr-xr-x | wctdm.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1175,7 +1175,7 @@ static int wcfxs_ioctl(struct zt_chan *chan, unsigned int cmd, unsigned long dat if (wc->lasttxhook[chan->chanpos - 1] == 0x1) { /* Apply the change if appropriate */ wc->lasttxhook[chan->chanpos - 1] = 0x2; - wcfxs_setreg(wc, x, 64, wc->lasttxhook[chan->chanpos - 1]); + wcfxs_setreg(wc, chan->chanpos - 1, 64, wc->lasttxhook[chan->chanpos - 1]); } break; case WCFXS_GET_STATS: @@ -1175,7 +1175,7 @@ static int wcfxs_ioctl(struct zt_chan *chan, unsigned int cmd, unsigned long dat if (wc->lasttxhook[chan->chanpos - 1] == 0x1) { /* Apply the change if appropriate */ wc->lasttxhook[chan->chanpos - 1] = 0x2; - wcfxs_setreg(wc, x, 64, wc->lasttxhook[chan->chanpos - 1]); + wcfxs_setreg(wc, chan->chanpos - 1, 64, wc->lasttxhook[chan->chanpos - 1]); } break; case WCFXS_GET_STATS: |