drivers/rpmsg_virtio_lite: init the pm wakelock name

Fix the issue that pm feature not picked before
rename the rpmsg_virtio to rpmsg_virtio_lite

Signed-off-by: buxiasen <buxiasen@xiaomi.com>
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
buxiasen
2024-11-27 18:13:58 +08:00
committed by Xiang Xiao
parent fd67ef3af9
commit c4acb35000
+6
View File
@@ -819,6 +819,12 @@ int rpmsg_virtio_lite_initialize(FAR struct rpmsg_virtio_lite_s *dev)
goto err_thread;
}
#ifdef CONFIG_RPMSG_VIRTIO_LITE_PM
snprintf(name, sizeof(name), "rpmsg-virtio-%s",
RPMSG_VIRTIO_LITE_GET_CPUNAME(dev));
pm_wakelock_init(&priv->wakelock, name, PM_IDLE_DOMAIN, PM_IDLE);
#endif
return OK;
err_thread: