summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <andreas@eversberg.eu>2008-11-09 10:23:19 +0100
committerKarsten Keil <kkeil@suse.de>2009-01-09 22:44:29 +0100
commitc3b3cdeba5a671ce5d0064c52c8a85f5b1e72e92 (patch)
treed027ebd6a1b4ddfc9358c641ea40241c5c9ee8a3
parente314f89a62c1d74380455690325b1336ea0dca9d (diff)
downloadop-kernel-dev-c3b3cdeba5a671ce5d0064c52c8a85f5b1e72e92.zip
op-kernel-dev-c3b3cdeba5a671ce5d0064c52c8a85f5b1e72e92.tar.gz
mISDN: Added missing create_l1() call
create_l1() was missed when changing mode to TE. Signed-off-by: Andreas Eversberg <andreas@eversberg.eu> Signed-off-by: Karsten Keil <kkeil@suse.de>
-rw-r--r--drivers/isdn/hardware/mISDN/hfcpci.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/isdn/hardware/mISDN/hfcpci.c b/drivers/isdn/hardware/mISDN/hfcpci.c
index 019dbe9..917bf41 100644
--- a/drivers/isdn/hardware/mISDN/hfcpci.c
+++ b/drivers/isdn/hardware/mISDN/hfcpci.c
@@ -1937,6 +1937,11 @@ open_dchannel(struct hfc_pci *hc, struct mISDNchannel *ch,
if (rq->protocol != ch->protocol) {
if (hc->hw.protocol == ISDN_P_TE_S0)
l1_event(hc->dch.l1, CLOSE_CHANNEL);
+ if (rq->protocol == ISDN_P_TE_S0) {
+ err = create_l1(&hc->dch, hfc_l1callback);
+ if (err)
+ return err;
+ }
hc->hw.protocol = rq->protocol;
ch->protocol = rq->protocol;
hfcpci_setmode(hc);
OpenPOWER on IntegriCloud