aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-06 12:48:31 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-06 12:48:31 -0400
commitc87985a3ce723995fc7b25e598238d67154108a1 (patch)
treee60def1b77c25c1d74180f62e8a5603f9826f209 /drivers/isdn
parentd155255a344c417acad74156654295a2964e6b81 (diff)
parent0d7614f09c1ebdbaa1599a5aba7593f147bf96ee (diff)
Merge tty-next into 3.6-rc1
This handles the merge issue in: arch/um/drivers/line.c arch/um/drivers/line.h And resolves the duplicate patches that were in both trees do to the tty-next branch not getting merged into 3.6-rc1. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/isdn')
-rw-r--r--drivers/isdn/gigaset/capi.c2
-rw-r--r--drivers/isdn/hardware/mISDN/avmfritz.c7
-rw-r--r--drivers/isdn/hardware/mISDN/hfcsusb.c18
-rw-r--r--drivers/isdn/hisax/hfc_usb.c18
-rw-r--r--drivers/isdn/hisax/isurf.c5
-rw-r--r--drivers/isdn/mISDN/stack.c4
6 files changed, 39 insertions, 15 deletions
diff --git a/drivers/isdn/gigaset/capi.c b/drivers/isdn/gigaset/capi.c
index 27e4a3e21d64..68452b768da2 100644
--- a/drivers/isdn/gigaset/capi.c
+++ b/drivers/isdn/gigaset/capi.c
@@ -288,6 +288,7 @@ static inline void dump_rawmsg(enum debuglevel level, const char *tag,
288 * format CAPI IE as string 288 * format CAPI IE as string
289 */ 289 */
290 290
291#ifdef CONFIG_GIGASET_DEBUG
291static const char *format_ie(const char *ie) 292static const char *format_ie(const char *ie)
292{ 293{
293 static char result[3 * MAX_FMT_IE_LEN]; 294 static char result[3 * MAX_FMT_IE_LEN];
@@ -313,6 +314,7 @@ static const char *format_ie(const char *ie)
313 *--pout = 0; 314 *--pout = 0;
314 return result; 315 return result;
315} 316}
317#endif
316 318
317/* 319/*
318 * emit DATA_B3_CONF message 320 * emit DATA_B3_CONF message
diff --git a/drivers/isdn/hardware/mISDN/avmfritz.c b/drivers/isdn/hardware/mISDN/avmfritz.c
index c08fc605e56b..fa6ca4733725 100644
--- a/drivers/isdn/hardware/mISDN/avmfritz.c
+++ b/drivers/isdn/hardware/mISDN/avmfritz.c
@@ -449,7 +449,8 @@ hdlc_fill_fifo(struct bchannel *bch)
449{ 449{
450 struct fritzcard *fc = bch->hw; 450 struct fritzcard *fc = bch->hw;
451 struct hdlc_hw *hdlc; 451 struct hdlc_hw *hdlc;
452 int count, fs, cnt = 0, idx, fillempty = 0; 452 int count, fs, cnt = 0, idx;
453 bool fillempty = false;
453 u8 *p; 454 u8 *p;
454 u32 *ptr, val, addr; 455 u32 *ptr, val, addr;
455 456
@@ -462,7 +463,7 @@ hdlc_fill_fifo(struct bchannel *bch)
462 return; 463 return;
463 count = fs; 464 count = fs;
464 p = bch->fill; 465 p = bch->fill;
465 fillempty = 1; 466 fillempty = true;
466 } else { 467 } else {
467 count = bch->tx_skb->len - bch->tx_idx; 468 count = bch->tx_skb->len - bch->tx_idx;
468 if (count <= 0) 469 if (count <= 0)
@@ -477,7 +478,7 @@ hdlc_fill_fifo(struct bchannel *bch)
477 hdlc->ctrl.sr.cmd |= HDLC_CMD_XME; 478 hdlc->ctrl.sr.cmd |= HDLC_CMD_XME;
478 } 479 }
479 ptr = (u32 *)p; 480 ptr = (u32 *)p;
480 if (fillempty) { 481 if (!fillempty) {
481 pr_debug("%s.B%d: %d/%d/%d", fc->name, bch->nr, count, 482 pr_debug("%s.B%d: %d/%d/%d", fc->name, bch->nr, count,
482 bch->tx_idx, bch->tx_skb->len); 483 bch->tx_idx, bch->tx_skb->len);
483 bch->tx_idx += count; 484 bch->tx_idx += count;
diff --git a/drivers/isdn/hardware/mISDN/hfcsusb.c b/drivers/isdn/hardware/mISDN/hfcsusb.c
index c65c3440cd70..114f3bcba1b0 100644
--- a/drivers/isdn/hardware/mISDN/hfcsusb.c
+++ b/drivers/isdn/hardware/mISDN/hfcsusb.c
@@ -2084,13 +2084,21 @@ hfcsusb_probe(struct usb_interface *intf, const struct usb_device_id *id)
2084 /* create the control pipes needed for register access */ 2084 /* create the control pipes needed for register access */
2085 hw->ctrl_in_pipe = usb_rcvctrlpipe(hw->dev, 0); 2085 hw->ctrl_in_pipe = usb_rcvctrlpipe(hw->dev, 0);
2086 hw->ctrl_out_pipe = usb_sndctrlpipe(hw->dev, 0); 2086 hw->ctrl_out_pipe = usb_sndctrlpipe(hw->dev, 0);
2087
2088 driver_info = (struct hfcsusb_vdata *)
2089 hfcsusb_idtab[vend_idx].driver_info;
2090
2087 hw->ctrl_urb = usb_alloc_urb(0, GFP_KERNEL); 2091 hw->ctrl_urb = usb_alloc_urb(0, GFP_KERNEL);
2092 if (!hw->ctrl_urb) {
2093 pr_warn("%s: No memory for control urb\n",
2094 driver_info->vend_name);
2095 kfree(hw);
2096 return -ENOMEM;
2097 }
2088 2098
2089 driver_info = 2099 pr_info("%s: %s: detected \"%s\" (%s, if=%d alt=%d)\n",
2090 (struct hfcsusb_vdata *)hfcsusb_idtab[vend_idx].driver_info; 2100 hw->name, __func__, driver_info->vend_name,
2091 printk(KERN_DEBUG "%s: %s: detected \"%s\" (%s, if=%d alt=%d)\n", 2101 conf_str[small_match], ifnum, alt_used);
2092 hw->name, __func__, driver_info->vend_name,
2093 conf_str[small_match], ifnum, alt_used);
2094 2102
2095 if (setup_instance(hw, dev->dev.parent)) 2103 if (setup_instance(hw, dev->dev.parent))
2096 return -EIO; 2104 return -EIO;
diff --git a/drivers/isdn/hisax/hfc_usb.c b/drivers/isdn/hisax/hfc_usb.c
index 84f9c8103078..849a80752685 100644
--- a/drivers/isdn/hisax/hfc_usb.c
+++ b/drivers/isdn/hisax/hfc_usb.c
@@ -1483,13 +1483,21 @@ hfc_usb_probe(struct usb_interface *intf, const struct usb_device_id *id)
1483 usb_rcvctrlpipe(context->dev, 0); 1483 usb_rcvctrlpipe(context->dev, 0);
1484 context->ctrl_out_pipe = 1484 context->ctrl_out_pipe =
1485 usb_sndctrlpipe(context->dev, 0); 1485 usb_sndctrlpipe(context->dev, 0);
1486
1487 driver_info = (hfcsusb_vdata *)
1488 hfcusb_idtab[vend_idx].driver_info;
1489
1486 context->ctrl_urb = usb_alloc_urb(0, GFP_KERNEL); 1490 context->ctrl_urb = usb_alloc_urb(0, GFP_KERNEL);
1487 1491
1488 driver_info = 1492 if (!context->ctrl_urb) {
1489 (hfcsusb_vdata *) hfcusb_idtab[vend_idx]. 1493 pr_warn("%s: No memory for control urb\n",
1490 driver_info; 1494 driver_info->vend_name);
1491 printk(KERN_INFO "HFC-S USB: detected \"%s\"\n", 1495 kfree(context);
1492 driver_info->vend_name); 1496 return -ENOMEM;
1497 }
1498
1499 pr_info("HFC-S USB: detected \"%s\"\n",
1500 driver_info->vend_name);
1493 1501
1494 DBG(HFCUSB_DBG_INIT, 1502 DBG(HFCUSB_DBG_INIT,
1495 "HFC-S USB: Endpoint-Config: %s (if=%d alt=%d), E-Channel(%d)", 1503 "HFC-S USB: Endpoint-Config: %s (if=%d alt=%d), E-Channel(%d)",
diff --git a/drivers/isdn/hisax/isurf.c b/drivers/isdn/hisax/isurf.c
index ea2717215296..c1530fe248c2 100644
--- a/drivers/isdn/hisax/isurf.c
+++ b/drivers/isdn/hisax/isurf.c
@@ -231,6 +231,11 @@ setup_isurf(struct IsdnCard *card)
231 } 231 }
232 pnp_disable_dev(pnp_d); 232 pnp_disable_dev(pnp_d);
233 err = pnp_activate_dev(pnp_d); 233 err = pnp_activate_dev(pnp_d);
234 if (err < 0) {
235 pr_warn("%s: pnp_activate_dev ret=%d\n",
236 __func__, err);
237 return 0;
238 }
234 cs->hw.isurf.reset = pnp_port_start(pnp_d, 0); 239 cs->hw.isurf.reset = pnp_port_start(pnp_d, 0);
235 cs->hw.isurf.phymem = pnp_mem_start(pnp_d, 1); 240 cs->hw.isurf.phymem = pnp_mem_start(pnp_d, 1);
236 cs->irq = pnp_irq(pnp_d, 0); 241 cs->irq = pnp_irq(pnp_d, 0);
diff --git a/drivers/isdn/mISDN/stack.c b/drivers/isdn/mISDN/stack.c
index 1a0ae4445ff2..5f21f629b7ae 100644
--- a/drivers/isdn/mISDN/stack.c
+++ b/drivers/isdn/mISDN/stack.c
@@ -135,8 +135,8 @@ send_layer2(struct mISDNstack *st, struct sk_buff *skb)
135 skb = NULL; 135 skb = NULL;
136 else if (*debug & DEBUG_SEND_ERR) 136 else if (*debug & DEBUG_SEND_ERR)
137 printk(KERN_DEBUG 137 printk(KERN_DEBUG
138 "%s ch%d mgr prim(%x) addr(%x) err %d\n", 138 "%s mgr prim(%x) err %d\n",
139 __func__, ch->nr, hh->prim, ch->addr, ret); 139 __func__, hh->prim, ret);
140 } 140 }
141out: 141out:
142 mutex_unlock(&st->lmutex); 142 mutex_unlock(&st->lmutex);