Bluetooth: Fix monitor init priority
The monitor protocol handling needs to be initialized very early on, e.g. before HCI driver registration. Use the same priority as used for other console handlers, except we don't expose this as a Kconfig option for now. Change-Id: I61157d62327080eeac7a59bb64e5a18877cc26f6 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
bf1356c969
commit
ee3f478687
1 changed files with 7 additions and 1 deletions
|
@ -33,6 +33,12 @@
|
|||
|
||||
#include "monitor.h"
|
||||
|
||||
/* This is the same default priority as for other console handlers,
|
||||
* except that we're not exporting it as a Kconfig variable until a
|
||||
* clear need arises.
|
||||
*/
|
||||
#define MONITOR_INIT_PRIORITY 60
|
||||
|
||||
static struct device *monitor_dev;
|
||||
|
||||
extern int _prf(int (*func)(), void *dest,
|
||||
|
@ -171,4 +177,4 @@ static int bt_monitor_init(struct device *d)
|
|||
return 0;
|
||||
}
|
||||
|
||||
SYS_INIT(bt_monitor_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
SYS_INIT(bt_monitor_init, PRIMARY, MONITOR_INIT_PRIORITY);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue