From: Martin Bachem Date: Wed, 3 Sep 2008 16:08:30 +0000 (+0200) Subject: mISDN: Use protocol to detect D-channel X-Git-Tag: upstream/snapshot3+hdmi~20608^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9b61830cd88a1d3d5e6d61adb737a3e20f7f0f5;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git mISDN: Use protocol to detect D-channel Use protocol to detect D-channel not the channel number 0 Signed-off-by: Martin Bachem Signed-off-by: Karsten Keil --- diff --git a/drivers/isdn/hardware/mISDN/hfcpci.c b/drivers/isdn/hardware/mISDN/hfcpci.c index 8461477..37c2e19 100644 --- a/drivers/isdn/hardware/mISDN/hfcpci.c +++ b/drivers/isdn/hardware/mISDN/hfcpci.c @@ -1964,7 +1964,8 @@ hfc_dctrl(struct mISDNchannel *ch, u_int cmd, void *arg) switch (cmd) { case OPEN_CHANNEL: rq = arg; - if (rq->adr.channel == 0) + if ((rq->protocol == ISDN_P_TE_S0) || + (rq->protocol == ISDN_P_NT_S0)) err = open_dchannel(hc, ch, rq); else err = open_bchannel(hc, rq);