From: Andreas Eversberg Date: Sun, 9 Nov 2008 09:23:19 +0000 (+0100) Subject: mISDN: Added missing create_l1() call X-Git-Tag: v2.6.29-rc1~20^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c3b3cdeba5a671ce5d0064c52c8a85f5b1e72e92;p=linux-2.6-omap-h63xx.git mISDN: Added missing create_l1() call create_l1() was missed when changing mode to TE. Signed-off-by: Andreas Eversberg Signed-off-by: Karsten Keil --- diff --git a/drivers/isdn/hardware/mISDN/hfcpci.c b/drivers/isdn/hardware/mISDN/hfcpci.c index 019dbe9b082..917bf41a293 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);