drivers: audio: remove usage of device_pm_control_nop

device_pm_control_nop is now deprecated in favour of NULL.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-04-28 10:07:21 +02:00 committed by Anas Nashif
parent 510aacc45d
commit 173dc5ef84
3 changed files with 7 additions and 9 deletions

View file

@ -1450,7 +1450,5 @@ static struct _dmic_ops dmic_ops = {
.read = dmic_read_device,
};
DEVICE_DT_INST_DEFINE(0, &dmic_initialize_device, device_pm_control_nop,
NULL, NULL,
POST_KERNEL, CONFIG_AUDIO_DMIC_INIT_PRIORITY,
&dmic_ops);
DEVICE_DT_INST_DEFINE(0, &dmic_initialize_device, NULL, NULL, NULL, POST_KERNEL,
CONFIG_AUDIO_DMIC_INIT_PRIORITY, &dmic_ops);

View file

@ -165,6 +165,6 @@ static int mpxxdtyy_initialize(const struct device *dev)
static struct mpxxdtyy_data mpxxdtyy_data;
DEVICE_DT_INST_DEFINE(0, mpxxdtyy_initialize, device_pm_control_nop,
&mpxxdtyy_data, NULL, POST_KERNEL,
CONFIG_AUDIO_DMIC_INIT_PRIORITY, &mpxxdtyy_driver_api);
DEVICE_DT_INST_DEFINE(0, mpxxdtyy_initialize, NULL, &mpxxdtyy_data, NULL,
POST_KERNEL, CONFIG_AUDIO_DMIC_INIT_PRIORITY,
&mpxxdtyy_driver_api);

View file

@ -543,6 +543,6 @@ static const struct audio_codec_api codec_driver_api = {
.apply_properties = codec_apply_properties,
};
DEVICE_DT_INST_DEFINE(0, codec_initialize, device_pm_control_nop,
&codec_device_data, &codec_device_config, POST_KERNEL,
DEVICE_DT_INST_DEFINE(0, codec_initialize, NULL, &codec_device_data,
&codec_device_config, POST_KERNEL,
CONFIG_AUDIO_CODEC_INIT_PRIORITY, &codec_driver_api);