diff options
author | Hemant Gupta <hemant.gupta@stericsson.com> | 2011-09-27 18:39:24 +0530 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 11:05:55 +0200 |
commit | 33dd0f1a76ae8a8abe5061fc18cdc609d14a4fff (patch) | |
tree | 1466280066b46f7996ed14c8daa788d3db1c14e9 /drivers/staging/cg2900/mfd/cg2900_char_devices.c | |
parent | bf6221595f4ce9f461141098d8b2728234c8ef31 (diff) |
mfd/cg2900: Support HCI Raw Channel.
Add support for HCI Raw channel so that CG2900
can be accessed directly from user space.
ST-Ericsson Linux next: Not tested, ER351170
ST-Ericsson ID: 351170
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: If8a2455be32f0eb99f7c0bc7a5cf0e09270fa6af
Signed-off-by: Hemant Gupta <hemant.gupta@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32206
Reviewed-by: Henrik POSSUNG <henrik.possung@stericsson.com>
Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com>
Diffstat (limited to 'drivers/staging/cg2900/mfd/cg2900_char_devices.c')
-rw-r--r-- | drivers/staging/cg2900/mfd/cg2900_char_devices.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/cg2900/mfd/cg2900_char_devices.c b/drivers/staging/cg2900/mfd/cg2900_char_devices.c index ae1659c4a5e..81d230227db 100644 --- a/drivers/staging/cg2900/mfd/cg2900_char_devices.c +++ b/drivers/staging/cg2900/mfd/cg2900_char_devices.c @@ -210,6 +210,9 @@ static int char_dev_release(struct inode *inode, struct file *filp) wake_up_interruptible(&dev->rx_wait_queue); wake_up_interruptible(&dev->reset_wait_queue); + /* Purge the queue since the device is closed now */ + skb_queue_purge(&dev->rx_queue); + mutex_unlock(&dev->write_mutex); mutex_unlock(&dev->read_mutex); mutex_unlock(&char_info->open_mutex); |