samples: prod_consumer: remove usage of device_pm_control_nop

Replace usage of deprecated device_pm_control_nop with NULL.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-04-28 22:57:33 +02:00 committed by Anas Nashif
commit c1dd09819b

View file

@ -112,8 +112,7 @@ static int sample_driver_foo_init(const struct device *dev)
static struct sample_driver_foo_dev_data sample_driver_foo_dev_data_0;
DEVICE_DEFINE(sample_driver_foo_0, SAMPLE_DRIVER_NAME_0,
&sample_driver_foo_init,
device_pm_control_nop,
&sample_driver_foo_init, NULL,
&sample_driver_foo_dev_data_0, NULL,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&sample_driver_foo_api);