drivers: spi: use dedicated init priority
A couple of SPI drivers use CONFIG_KERNEL_INIT_PRIORITY_DEVICE as init priority for driver initialization. Let's change it to the dedicated CONFIG_SPI_INIT_PRIORITY to make it compatible with other ones. Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
This commit is contained in:
parent
5b070d28f3
commit
ea25b92cd9
6 changed files with 6 additions and 6 deletions
|
@ -474,7 +474,7 @@ static struct spi_driver_api spi_b91_api = {
|
|||
&spi_b91_data_##inst, \
|
||||
&spi_b91_cfg_##inst, \
|
||||
POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
CONFIG_SPI_INIT_PRIORITY, \
|
||||
&spi_b91_api);
|
||||
|
||||
DT_INST_FOREACH_STATUS_OKAY(SPI_B91_INIT)
|
||||
|
|
|
@ -455,7 +455,7 @@ static const struct spi_driver_api spi_api = {
|
|||
DEVICE_DT_DEFINE(DT_NODELABEL(spi##idx), &spi_esp32_init, \
|
||||
NULL, &spi_data_##idx, \
|
||||
&spi_config_##idx, POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &spi_api);
|
||||
CONFIG_SPI_INIT_PRIORITY, &spi_api);
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
ESP32_SPI_INIT(2);
|
||||
|
|
|
@ -770,7 +770,7 @@ static void spi_mcux_config_func_##id(const struct device *dev) \
|
|||
&spi_mcux_data_##id, \
|
||||
&spi_mcux_config_##id, \
|
||||
POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
CONFIG_SPI_INIT_PRIORITY, \
|
||||
&spi_mcux_driver_api); \
|
||||
\
|
||||
SPI_MCUX_FLEXCOMM_IRQ_HANDLER(id)
|
||||
|
|
|
@ -306,7 +306,7 @@ static const struct spi_driver_api spi_mcux_driver_api = {
|
|||
DEVICE_DT_INST_DEFINE(n, &spi_mcux_init, NULL, \
|
||||
&spi_mcux_data_##n, \
|
||||
&spi_mcux_config_##n, POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
CONFIG_SPI_INIT_PRIORITY, \
|
||||
&spi_mcux_driver_api); \
|
||||
\
|
||||
static void spi_mcux_config_func_##n(const struct device *dev) \
|
||||
|
|
|
@ -299,7 +299,7 @@ static const struct spi_driver_api spi_mcux_driver_api = {
|
|||
&spi_mcux_data_##n, \
|
||||
&spi_mcux_config_##n, \
|
||||
POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
CONFIG_SPI_INIT_PRIORITY, \
|
||||
&spi_mcux_driver_api); \
|
||||
\
|
||||
static void spi_mcux_config_func_##n(const struct device *dev) \
|
||||
|
|
|
@ -481,7 +481,7 @@ static const struct spi_driver_api xlnx_quadspi_driver_api = {
|
|||
NULL, \
|
||||
&xlnx_quadspi_data_##n, \
|
||||
&xlnx_quadspi_config_##n, POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
CONFIG_SPI_INIT_PRIORITY, \
|
||||
&xlnx_quadspi_driver_api); \
|
||||
\
|
||||
static void xlnx_quadspi_config_func_##n(const struct device *dev) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue