Bluetooth: btbcm: Allow using btbcm_initialize() for reinit
authorHans de Goede <hdegoede@redhat.com>
Fri, 20 Apr 2018 12:44:05 +0000 (14:44 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 18 May 2018 04:37:51 +0000 (06:37 +0200)
commit22ac191652cc73a390c60c1e0faafae53031d9f6
tree225842973cfa961db920eab198c7b79be7d097ca
parentfec0de23ea11429478fa2c24ace5cf4cc9cd2191
Bluetooth: btbcm: Allow using btbcm_initialize() for reinit

btbcm_finalize() does a re-init of the controller, which is almost the
same as the initial init. Modify btbcm_initialize() so that it can be
used for this re-init and modify btbcm_finalize() to use it.

As an added bonus this also makes the dev_info from btbcm_finalize()
use the proper hw_name instead of always printing "BCM".

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btbcm.c
drivers/bluetooth/btbcm.h
drivers/bluetooth/hci_bcm.c