From 5f5425f20a3ed2a725c28f5ce53ab27a2ecab8e0 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 11 Nov 2016 09:50:47 +0200 Subject: [PATCH] Bluetooth: drivers: Don't use deprecated NANOKERNEL init level Don't use the deprecated NANOKERNEL init level. The only requirement for Bluetooth drivers is for them to be registered before the application main() runs, so POST_KERNEL should be good enough. Change-Id: I02a8609bf63e9d608b802576214a2e76211b3965 Signed-off-by: Johan Hedberg --- drivers/bluetooth/hci/h4.c | 2 +- drivers/bluetooth/hci/h5.c | 2 +- drivers/bluetooth/nble/uart.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/bluetooth/hci/h4.c b/drivers/bluetooth/hci/h4.c index fe30a6a370d..20f3b3572a7 100644 --- a/drivers/bluetooth/hci/h4.c +++ b/drivers/bluetooth/hci/h4.c @@ -271,4 +271,4 @@ static int _bt_uart_init(struct device *unused) return 0; } -SYS_INIT(_bt_uart_init, NANOKERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE); +SYS_INIT(_bt_uart_init, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE); diff --git a/drivers/bluetooth/hci/h5.c b/drivers/bluetooth/hci/h5.c index 11cb108230c..90b26e1a123 100644 --- a/drivers/bluetooth/hci/h5.c +++ b/drivers/bluetooth/hci/h5.c @@ -761,4 +761,4 @@ static int _bt_uart_init(struct device *unused) return 0; } -SYS_INIT(_bt_uart_init, NANOKERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE); +SYS_INIT(_bt_uart_init, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE); diff --git a/drivers/bluetooth/nble/uart.c b/drivers/bluetooth/nble/uart.c index 8ab89adfdbe..8bc957f05d4 100644 --- a/drivers/bluetooth/nble/uart.c +++ b/drivers/bluetooth/nble/uart.c @@ -257,5 +257,5 @@ static int _bt_nble_init(struct device *unused) return 0; } -DEVICE_INIT(bt_nble, "", _bt_nble_init, NULL, NULL, NANOKERNEL, +DEVICE_INIT(bt_nble, "", _bt_nble_init, NULL, NULL, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);