From c1dd09819b3f677e3df9a0f78f69db5ab68043f6 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Wed, 28 Apr 2021 22:57:33 +0200 Subject: [PATCH] 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 --- samples/userspace/prod_consumer/src/sample_driver_foo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/samples/userspace/prod_consumer/src/sample_driver_foo.c b/samples/userspace/prod_consumer/src/sample_driver_foo.c index 0a11e7e57d6..545a5edb771 100644 --- a/samples/userspace/prod_consumer/src/sample_driver_foo.c +++ b/samples/userspace/prod_consumer/src/sample_driver_foo.c @@ -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);