Bluetooth: Move force_bredr_smp debugfs into hci_debugfs_create_bredr
authorClaire Chang <tientzu@chromium.org>
Tue, 29 Sep 2020 08:03:24 +0000 (16:03 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 9 Nov 2020 12:52:55 +0000 (13:52 +0100)
commit82493316507a720b6faa2ec23971c0ca89c6dcb0
tree87edce09a832b63ac55bad2b490712ad8bd049ef
parent1fb17dfc258ff6208f7873cc7b8e40e27515d2d5
Bluetooth: Move force_bredr_smp debugfs into hci_debugfs_create_bredr

Avoid multiple attempts to create the debugfs entry, force_bredr_smp,
by moving it from the SMP registration to the BR/EDR controller init
section. hci_debugfs_create_bredr is only called when HCI_SETUP and
HCI_CONFIG is not set.

Signed-off-by: Claire Chang <tientzu@chromium.org>
Reviewed-by: Alain Michaud <alainm@chromium.org>
Reviewed-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_debugfs.c
net/bluetooth/smp.c
net/bluetooth/smp.h