07 Aug, 2012
1 commit
-
devm_kzalloc() eliminates the need to free memory explicitly
thereby saving some cleanup code.Signed-off-by: Sachin Kamat
Acked-by: Marcel Holtmann
Signed-off-by: Gustavo Padovan
13 Feb, 2012
3 commits
-
The linux device model provides dev_set/get_drvdata so we can use this
to save private driver data.
This also removes several unnecessary casts.Signed-off-by: David Herrmann
Acked-by: Marcel Holtmann
Signed-off-by: Johan Hedberg -
After unregistering an hci_dev object a bluetooth driver does not have
any callbacks in the hci_dev structure left over. Therefore, there is no
need to keep a reference to the module.Previously, we needed this to protect the hci-destruct callback.
However, this callback is no longer available so we do not need this
owner field, anymore. Drivers now call hci_unregister_dev() and they
are done with the object.Signed-off-by: David Herrmann
Acked-by: Marcel Holtmann
Signed-off-by: Johan Hedberg -
Instead of waiting for the hdev object to get freed we now free the
private driver-internal data on SDIO shutdown. This allows us to remove
the obsolete hci-destruct callback and free our data object right away
after calling hci_unregister_dev(). The HCI-core does not call any
callbacks after this so we are never called again and can safely exit
the module.Signed-off-by: David Herrmann
Acked-by: Marcel Holtmann
Signed-off-by: Johan Hedberg
12 Oct, 2010
1 commit
-
Signed-off-by: David Vrabel
Signed-off-by: Marcel Holtmann
Signed-off-by: Gustavo F. Padovan
27 Feb, 2010
1 commit
-
The hdev->type is misnamed and should be actually hdev->bus instead. So
convert it now.Signed-off-by: Marcel Holtmann
30 Nov, 2008
2 commits
-
With the introduction of CONFIG_DYNAMIC_PRINTK_DEBUG it is possible to
allow debugging without having to recompile the kernel. This patch turns
all BT_DBG() calls into pr_debug() to support dynamic debug messages.As a side effect all CONFIG_BT_*_DEBUG statements are now removed and
some broken debug entries have been fixed.Signed-off-by: Marcel Holtmann
-
This patch fixes accumulating of the header in case packet was requeued
in the error path.Signed-off-by: Tomas Winkler
Signed-off-by: Marcel Holtmann
27 Oct, 2008
1 commit
-
free sk_buff with kfree_skb, instead of kree
Signed-off-by: Sergio Luis
Signed-off-by: David S. Miller
05 Feb, 2008
1 commit
-
This patch fixes a double-free spotted by the Coverity checker.
Signed-off-by: Adrian Bunk
Signed-off-by: Andrew Morton
Signed-off-by: David S. Miller
22 Oct, 2007
1 commit
-
This patch adds a generic driver for Bluetooth SDIO devices. It
supports Type-A and Type-B devices.Signed-off-by: David Vrabel
Signed-off-by: Marcel Holtmann