Bluetooth: Fixed BT ST Channel reg order
authorChen Ganir <chen.ganir@ti.com>
Tue, 30 Aug 2011 10:58:28 +0000 (13:58 +0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Sat, 17 Sep 2011 20:15:25 +0000 (17:15 -0300)
commit8be964d2364e8fbe302850f60d9d514c3e134510
treef7debac65b011dab76420bd997269e0f3e9b23f0
parent2d20a26a92f72e3bb658fe8ce99c3663756e9e7a
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>
drivers/bluetooth/btwilink.c