wake_up_process(session->task);
--- a/net/bluetooth/hci_sock.c
+++ b/net/bluetooth/hci_sock.c
-@@ -892,7 +892,11 @@ drop:
+@@ -891,7 +891,11 @@ drop:
goto done;
}
{
struct hci_ufilter uf = { .opcode = 0 };
struct sock *sk = sock->sk;
-@@ -1064,8 +1068,12 @@ static struct proto hci_sk_proto = {
+@@ -1063,8 +1067,12 @@ static struct proto hci_sk_proto = {
.obj_size = sizeof(struct hci_pinfo)
};
module_init(hidp_init);
--- a/net/bluetooth/rfcomm/sock.c
+++ b/net/bluetooth/rfcomm/sock.c
-@@ -325,8 +325,13 @@ static struct sock *rfcomm_sock_alloc(st
+@@ -324,8 +324,13 @@ static struct sock *rfcomm_sock_alloc(st
return sk;
}
{
struct sock *sk;
-@@ -680,7 +685,11 @@ static int rfcomm_sock_setsockopt_old(st
+@@ -679,7 +684,11 @@ static int rfcomm_sock_setsockopt_old(st
return err;
}
struct rfcomm_dlc *dlc = dev->dlc;
--- a/net/bluetooth/sco.c
+++ b/net/bluetooth/sco.c
-@@ -441,8 +441,12 @@ static struct sock *sco_sock_alloc(struc
+@@ -440,8 +440,12 @@ static struct sock *sco_sock_alloc(struc
return sk;
}
{
struct sock *sk;
-@@ -658,7 +662,11 @@ static int sco_sock_sendmsg(struct kiocb
+@@ -657,7 +661,11 @@ static int sco_sock_sendmsg(struct kiocb
return err;
}
int err = 0;
--- a/net/bluetooth/bnep/sock.c
+++ b/net/bluetooth/bnep/sock.c
-@@ -196,8 +196,12 @@ static struct proto bnep_proto = {
+@@ -195,8 +195,12 @@ static struct proto bnep_proto = {
.obj_size = sizeof(struct bt_sock)
};
--- a/net/bluetooth/cmtp/sock.c
+++ b/net/bluetooth/cmtp/sock.c
-@@ -190,8 +190,12 @@ static struct proto cmtp_proto = {
+@@ -189,8 +189,12 @@ static struct proto cmtp_proto = {
.obj_size = sizeof(struct bt_sock)
};
{
struct sock *sk = sock->sk;
struct l2cap_chan *chan = l2cap_pi(sk)->chan;
-@@ -1059,8 +1066,12 @@ static struct sock *l2cap_sock_alloc(str
+@@ -1060,8 +1067,12 @@ static struct sock *l2cap_sock_alloc(str
return sk;
}
{
struct sock *sk;
-@@ -1072,7 +1083,11 @@ static int l2cap_sock_create(struct net
+@@ -1073,7 +1084,11 @@ static int l2cap_sock_create(struct net
sock->type != SOCK_DGRAM && sock->type != SOCK_RAW)
return -ESOCKTNOSUPPORT;
.id_table = bluecard_ids,
--- a/drivers/bluetooth/bt3c_cs.c
+++ b/drivers/bluetooth/bt3c_cs.c
-@@ -187,7 +187,11 @@ static void bt3c_write_wakeup(bt3c_info_
+@@ -186,7 +186,11 @@ static void bt3c_write_wakeup(bt3c_info_
return;
do {
register struct sk_buff *skb;
register int len;
-@@ -225,7 +229,11 @@ static void bt3c_receive(bt3c_info_t *in
+@@ -224,7 +228,11 @@ static void bt3c_receive(bt3c_info_t *in
return;
}
avail = bt3c_read(iobase, 0x7006);
//printk("bt3c_cs: receiving %d bytes\n", avail);
-@@ -346,7 +354,11 @@ static irqreturn_t bt3c_interrupt(int ir
+@@ -345,7 +353,11 @@ static irqreturn_t bt3c_interrupt(int ir
/* our irq handler is shared */
return IRQ_NONE;
spin_lock(&(info->lock));
-@@ -474,7 +486,11 @@ static int bt3c_load_firmware(bt3c_info_
+@@ -473,7 +485,11 @@ static int bt3c_load_firmware(bt3c_info_
unsigned int iobase, size, addr, fcs, tmp;
int i, err = 0;
/* Reset */
bt3c_io_write(iobase, 0x8040, 0x0404);
-@@ -646,8 +662,27 @@ static int bt3c_probe(struct pcmcia_devi
+@@ -645,8 +661,27 @@ static int bt3c_probe(struct pcmcia_devi
info->p_dev = link;
link->priv = info;
return bt3c_config(link);
}
-@@ -661,6 +696,7 @@ static void bt3c_detach(struct pcmcia_de
+@@ -660,6 +695,7 @@ static void bt3c_detach(struct pcmcia_de
kfree(info);
}
static int bt3c_check_config(struct pcmcia_device *p_dev, void *priv_data)
{
int *try = priv_data;
-@@ -699,6 +735,63 @@ static int bt3c_check_config_notpicky(st
+@@ -698,6 +734,63 @@ static int bt3c_check_config_notpicky(st
}
return -ENODEV;
}
static int bt3c_config(struct pcmcia_device *link)
{
-@@ -722,9 +815,15 @@ static int bt3c_config(struct pcmcia_dev
+@@ -721,9 +814,15 @@ static int bt3c_config(struct pcmcia_dev
goto failed;
found_port:
i = pcmcia_enable_device(link);
if (i != 0)
-@@ -759,7 +858,13 @@ MODULE_DEVICE_TABLE(pcmcia, bt3c_ids);
+@@ -758,7 +857,13 @@ MODULE_DEVICE_TABLE(pcmcia, bt3c_ids);
static struct pcmcia_driver bt3c_driver = {
.owner = THIS_MODULE,
.id_table = bt3c_ids,
--- a/drivers/bluetooth/btuart_cs.c
+++ b/drivers/bluetooth/btuart_cs.c
-@@ -141,7 +141,11 @@ static void btuart_write_wakeup(btuart_i
+@@ -140,7 +140,11 @@ static void btuart_write_wakeup(btuart_i
}
do {
register struct sk_buff *skb;
register int len;
-@@ -182,7 +186,11 @@ static void btuart_receive(btuart_info_t
+@@ -181,7 +185,11 @@ static void btuart_receive(btuart_info_t
return;
}
do {
info->hdev->stat.byte_rx++;
-@@ -296,7 +304,11 @@ static irqreturn_t btuart_interrupt(int
+@@ -295,7 +303,11 @@ static irqreturn_t btuart_interrupt(int
/* our irq handler is shared */
return IRQ_NONE;
spin_lock(&(info->lock));
-@@ -353,7 +365,11 @@ static void btuart_change_speed(btuart_i
+@@ -352,7 +364,11 @@ static void btuart_change_speed(btuart_i
return;
}
spin_lock_irqsave(&(info->lock), flags);
-@@ -472,7 +488,11 @@ static int btuart_hci_ioctl(struct hci_d
+@@ -471,7 +487,11 @@ static int btuart_hci_ioctl(struct hci_d
static int btuart_open(btuart_info_t *info)
{
unsigned long flags;
struct hci_dev *hdev;
spin_lock_init(&(info->lock));
-@@ -539,7 +559,11 @@ static int btuart_open(btuart_info_t *in
+@@ -538,7 +558,11 @@ static int btuart_open(btuart_info_t *in
static int btuart_close(btuart_info_t *info)
{
unsigned long flags;
struct hci_dev *hdev = info->hdev;
if (!hdev)
-@@ -575,8 +599,27 @@ static int btuart_probe(struct pcmcia_de
+@@ -574,8 +598,27 @@ static int btuart_probe(struct pcmcia_de
info->p_dev = link;
link->priv = info;
return btuart_config(link);
}
-@@ -590,6 +633,7 @@ static void btuart_detach(struct pcmcia_
+@@ -589,6 +632,7 @@ static void btuart_detach(struct pcmcia_
kfree(info);
}
static int btuart_check_config(struct pcmcia_device *p_dev, void *priv_data)
{
int *try = priv_data;
-@@ -628,6 +672,63 @@ static int btuart_check_config_notpicky(
+@@ -627,6 +671,63 @@ static int btuart_check_config_notpicky(
}
return -ENODEV;
}
static int btuart_config(struct pcmcia_device *link)
{
-@@ -651,9 +752,15 @@ static int btuart_config(struct pcmcia_d
+@@ -650,9 +751,15 @@ static int btuart_config(struct pcmcia_d
goto failed;
found_port:
i = pcmcia_enable_device(link);
if (i != 0)
-@@ -687,7 +794,13 @@ MODULE_DEVICE_TABLE(pcmcia, btuart_ids);
+@@ -686,7 +793,13 @@ MODULE_DEVICE_TABLE(pcmcia, btuart_ids);
static struct pcmcia_driver btuart_driver = {
.owner = THIS_MODULE,
.id_table = btuart_ids,
--- a/drivers/bluetooth/dtl1_cs.c
+++ b/drivers/bluetooth/dtl1_cs.c
-@@ -145,7 +145,11 @@ static void dtl1_write_wakeup(dtl1_info_
+@@ -144,7 +144,11 @@ static void dtl1_write_wakeup(dtl1_info_
}
do {
register struct sk_buff *skb;
register int len;
-@@ -210,7 +214,11 @@ static void dtl1_receive(dtl1_info_t *in
+@@ -209,7 +213,11 @@ static void dtl1_receive(dtl1_info_t *in
return;
}
do {
info->hdev->stat.byte_rx++;
-@@ -297,7 +305,11 @@ static irqreturn_t dtl1_interrupt(int ir
+@@ -296,7 +304,11 @@ static irqreturn_t dtl1_interrupt(int ir
/* our irq handler is shared */
return IRQ_NONE;
spin_lock(&(info->lock));
-@@ -452,7 +464,11 @@ static int dtl1_hci_ioctl(struct hci_dev
+@@ -451,7 +463,11 @@ static int dtl1_hci_ioctl(struct hci_dev
static int dtl1_open(dtl1_info_t *info)
{
unsigned long flags;
struct hci_dev *hdev;
spin_lock_init(&(info->lock));
-@@ -496,8 +512,13 @@ static int dtl1_open(dtl1_info_t *info)
+@@ -495,8 +511,13 @@ static int dtl1_open(dtl1_info_t *info)
outb(UART_LCR_WLEN8, iobase + UART_LCR); /* Reset DLAB */
outb((UART_MCR_DTR | UART_MCR_RTS | UART_MCR_OUT2), iobase + UART_MCR);
/* Turn on interrupts */
outb(UART_IER_RLSI | UART_IER_RDI | UART_IER_THRI, iobase + UART_IER);
-@@ -522,7 +543,11 @@ static int dtl1_open(dtl1_info_t *info)
+@@ -521,7 +542,11 @@ static int dtl1_open(dtl1_info_t *info)
static int dtl1_close(dtl1_info_t *info)
{
unsigned long flags;
struct hci_dev *hdev = info->hdev;
if (!hdev)
-@@ -558,7 +583,24 @@ static int dtl1_probe(struct pcmcia_devi
+@@ -557,7 +582,24 @@ static int dtl1_probe(struct pcmcia_devi
info->p_dev = link;
link->priv = info;
return dtl1_config(link);
}
-@@ -573,6 +615,7 @@ static void dtl1_detach(struct pcmcia_de
+@@ -572,6 +614,7 @@ static void dtl1_detach(struct pcmcia_de
kfree(info);
}
static int dtl1_confcheck(struct pcmcia_device *p_dev, void *priv_data)
{
if ((p_dev->resource[1]->end) || (p_dev->resource[1]->end < 8))
-@@ -583,6 +626,29 @@ static int dtl1_confcheck(struct pcmcia_
+@@ -582,6 +625,29 @@ static int dtl1_confcheck(struct pcmcia_
return pcmcia_request_io(p_dev);
}
static int dtl1_config(struct pcmcia_device *link)
{
-@@ -590,13 +656,23 @@ static int dtl1_config(struct pcmcia_dev
+@@ -589,13 +655,23 @@ static int dtl1_config(struct pcmcia_dev
int i;
/* Look for a generic full-sized window */
i = pcmcia_enable_device(link);
if (i != 0)
-@@ -623,7 +699,13 @@ MODULE_DEVICE_TABLE(pcmcia, dtl1_ids);
+@@ -622,7 +698,13 @@ MODULE_DEVICE_TABLE(pcmcia, dtl1_ids);
static struct pcmcia_driver dtl1_driver = {
.owner = THIS_MODULE,