Bluetooth: Fixed BT ST Channel reg order

Bluetooth: Fixed BT ST Channel reg order

Reordered the BT ST channel registration, to make sure that the
event channel is registered before all others. This prevents a
situation where incoming events may cause kernel panic in the ST
driver if the event channel is not yet registered to handle
incoming events.In addition, the deregistration of the channels
was also modified, to be in the reversed order of the registration,
to allow the event channel to be the last one unregistered.

Signed-off-by: Chen Ganir <chen.ganir@ti.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Bluetooth: btwilink: Remove empty destruct cb

Bluetooth: btwilink: Remove empty destruct cb

The destruct cb is optional so remove our empty dummy cb.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Bluetooth: btwilink: avoid double freeing of recv skb

Upon error in hci_recv_frame, the HCI Core is freed before the error
is reported to btwilink. When the error does get to btwilink and forwarded
to ST core, ST core also attempts to free the skb.

Although the 2 frees of skb shouldn't theoritically cause any harm, this
is redundant and hence this patch returns 0 to ST core even upon error,
because there is no action to be taken.

Change-Id: Ia3ea728625b01eb32509389c75894818f135bc86
Signed-off-by: Manjunatha Halli <x0130808@ti.com>
Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
Signed-off-by: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@ti.com>