Skip to content

Commit c3ae364

Browse files
MaureenHelmnashif
authored andcommitted
drivers: i2s: Refactor drivers to use shared init priority
Refactors the remaining I2S drivers to use the shared driver class initialization priority configuration, CONFIG_I2S_INIT_PRIORITY, to allow configuring I2S drivers separately from other devices. This is similar to other driver classes. The default is set to CONFIG_KERNEL_INIT_PRIORITY_DEVICE to be consistent with other driver classes. Signed-off-by: Maureen Helm <[email protected]>
1 parent 1c7c450 commit c3ae364

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/i2s/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if I2S
1515

1616
config I2S_INIT_PRIORITY
1717
int "Init priority"
18-
default 70
18+
default KERNEL_INIT_PRIORITY_DEVICE
1919
help
2020
Device driver initialization priority.
2121

drivers/i2s/i2s_mcux_flexcomm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ static int i2s_mcux_init(const struct device *dev)
908908
&i2s_mcux_data_##id, \
909909
&i2s_mcux_config_##id, \
910910
POST_KERNEL, \
911-
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
911+
CONFIG_I2S_INIT_PRIORITY, \
912912
&i2s_mcux_driver_api); \
913913
static void i2s_mcux_config_func_##id(const struct device *dev) \
914914
{ \

0 commit comments

Comments
 (0)