From 19ecf1f19ff19eecc2a48ee6f69821e3677dab61 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Fri, 18 Dec 2020 08:52:46 -0600 Subject: [PATCH] drivers: video: Convert DEVICE_AND_API_INIT to DEVICE_DEFINE Convert driver(s) to DEVICE_DEFINE instead of DEVICE_AND_API_INIT so we can deprecate DEVICE_AND_API_INIT in the future. Signed-off-by: Kumar Gala --- drivers/video/video_sw_generator.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/video/video_sw_generator.c b/drivers/video/video_sw_generator.c index 6ff3aecadea..e6fcb227248 100644 --- a/drivers/video/video_sw_generator.c +++ b/drivers/video/video_sw_generator.c @@ -273,7 +273,8 @@ static int video_sw_generator_init(const struct device *dev) return 0; } -DEVICE_AND_API_INIT(video_sw_generator, "VIDEO_SW_GENERATOR", - &video_sw_generator_init, &video_sw_generator_data_0, NULL, +DEVICE_DEFINE(video_sw_generator, "VIDEO_SW_GENERATOR", + &video_sw_generator_init, device_pm_control_nop, + &video_sw_generator_data_0, NULL, POST_KERNEL, CONFIG_VIDEO_INIT_PRIORITY, &video_sw_generator_driver_api);